vfs_xattr_tdb: move close_xattr_db()
authorRalph Boehme <slow@samba.org>
Wed, 27 Jul 2022 10:43:01 +0000 (12:43 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 10 Aug 2022 15:32:35 +0000 (15:32 +0000)
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>
source3/modules/vfs_xattr_tdb.c

index 07b95899d80d0e162231c06c270d91c8e49a8580..beaaf0d12d9fe7e08e80be06cb7e4316b82837c9 100644 (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
  */
@@ -565,16 +575,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)
 {