]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
btrfs: remove root argument from btrfs_del_dir_entries_in_log()
authorFilipe Manana <fdmanana@suse.com>
Wed, 19 Nov 2025 13:01:20 +0000 (13:01 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 25 Nov 2025 00:53:32 +0000 (01:53 +0100)
There's no need to pass the root as we can extract it from the directory
inode, so remove it.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c
fs/btrfs/tree-log.c
fs/btrfs/tree-log.h

index 8e13117eca161543fb2565c74afde9446d0da40b..554bd03c9f2169136da57a60b695db64540d17c4 100644 (file)
@@ -4363,7 +4363,7 @@ skip_backref:
         */
        if (!rename_ctx) {
                btrfs_del_inode_ref_in_log(trans, root, name, inode, dir_ino);
-               btrfs_del_dir_entries_in_log(trans, root, name, dir, index);
+               btrfs_del_dir_entries_in_log(trans, name, dir, index);
        }
 
        /*
index cc27f87c4904f1703e4230da72df5026b7c8d84c..c2e45e64ab6c2a2be2f0d30c009a8fa9a608df9c 100644 (file)
@@ -3900,10 +3900,10 @@ static int del_logged_dentry(struct btrfs_trans_handle *trans,
  * or the entire directory.
  */
 void btrfs_del_dir_entries_in_log(struct btrfs_trans_handle *trans,
-                                 struct btrfs_root *root,
                                  const struct fscrypt_str *name,
                                  struct btrfs_inode *dir, u64 index)
 {
+       struct btrfs_root *root = dir->root;
        BTRFS_PATH_AUTO_FREE(path);
        int ret;
 
index 4f149d7d4fdee13deb929fd2f30c0ca57f80d49c..a0aeec2448c0f467b7ecd0f8a125ce44824cb0cf 100644 (file)
@@ -79,7 +79,6 @@ int btrfs_log_dentry_safe(struct btrfs_trans_handle *trans,
                          struct dentry *dentry,
                          struct btrfs_log_ctx *ctx);
 void btrfs_del_dir_entries_in_log(struct btrfs_trans_handle *trans,
-                                 struct btrfs_root *root,
                                  const struct fscrypt_str *name,
                                  struct btrfs_inode *dir, u64 index);
 void btrfs_del_inode_ref_in_log(struct btrfs_trans_handle *trans,