mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
btrfs: remove root argument from btrfs_del_dir_entries_in_log()
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>
This commit is contained in:
committed by
David Sterba
parent
9c78fe4a85
commit
1361f7d8da
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user