1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

vfs_xattr_tdb: move close_xattr_db()

This just makes the diff of the next commit smaller and easier to digest.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15126
MR: https://gitlab.com/samba-team/samba/-/merge_requests/2643

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit b26dc252aa)
This commit is contained in:
Ralph Boehme 2022-07-27 12:43:01 +02:00 committed by Jule Anger
parent 56ab836157
commit b83ff1252e

View File

@ -321,6 +321,16 @@ static int xattr_tdb_fremovexattr(struct vfs_handle_struct *handle,
return ret;
}
/*
* Destructor for the VFS private data
*/
static void close_xattr_db(void **data)
{
struct db_context **p_db = (struct db_context **)data;
TALLOC_FREE(*p_db);
}
/*
* Open the tdb file upon VFS_CONNECT
*/
@ -568,16 +578,6 @@ static int xattr_tdb_unlinkat(vfs_handle_struct *handle,
return ret;
}
/*
* Destructor for the VFS private data
*/
static void close_xattr_db(void **data)
{
struct db_context **p_db = (struct db_context **)data;
TALLOC_FREE(*p_db);
}
static int xattr_tdb_connect(vfs_handle_struct *handle, const char *service,
const char *user)
{