summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.h
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2022-01-20 11:00:07 +0000
committerDavid Sterba <dsterba@suse.com>2022-03-14 13:13:47 +0100
commitd5f5bd546552a94eefd68c42f40f778c40a89d2c (patch)
tree844ada7bbcc43e7d8c0ec83b922ecef10266380f /fs/btrfs/tree-log.h
parent839061fe88beacb911bbb9412d18db3e61160e4f (diff)
downloadlinux-stable-d5f5bd546552a94eefd68c42f40f778c40a89d2c.tar.gz
linux-stable-d5f5bd546552a94eefd68c42f40f778c40a89d2c.tar.bz2
linux-stable-d5f5bd546552a94eefd68c42f40f778c40a89d2c.zip
btrfs: pass the dentry to btrfs_log_new_name() instead of the inode
In the next patch in the series, there will be the need to access the old name, and its length, of an inode when logging the inode during a rename. So instead of passing the inode to btrfs_log_new_name() pass the dentry, because from the dentry we can get the inode, the name and its length. This will avoid passing 3 new parameters to btrfs_log_new_name() in the next patch - the name, its length and an index number. This way we end up passing only 1 new parameter, the index number. Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tree-log.h')
-rw-r--r--fs/btrfs/tree-log.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/tree-log.h b/fs/btrfs/tree-log.h
index f6811c3df38a..e69411f308ed 100644
--- a/fs/btrfs/tree-log.h
+++ b/fs/btrfs/tree-log.h
@@ -86,7 +86,7 @@ void btrfs_record_unlink_dir(struct btrfs_trans_handle *trans,
void btrfs_record_snapshot_destroy(struct btrfs_trans_handle *trans,
struct btrfs_inode *dir);
void btrfs_log_new_name(struct btrfs_trans_handle *trans,
- struct btrfs_inode *inode, struct btrfs_inode *old_dir,
+ struct dentry *old_dentry, struct btrfs_inode *old_dir,
struct dentry *parent);
#endif