diff options
| author | Filipe Manana <fdmanana@suse.com> | 2024-06-13 11:41:38 +0100 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2024-07-11 15:33:25 +0200 |
| commit | d383eb69eb239ebf2f219e32742081d03fd9ac56 (patch) | |
| tree | cd454434860cb533d083bbf3b482cf4e8c773aad /fs/btrfs/inode.c | |
| parent | d13240dd0a2d13bce6039cc51990613b30d47bc4 (diff) | |
btrfs: remove super block argument from btrfs_iget_path()
It's pointless to pass a super block argument to btrfs_iget_path() because
we always pass a root and from it we can get the super block through:
root->fs_info->sb
So remove the super block argument.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
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/inode.c')
| -rw-r--r-- | fs/btrfs/inode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 58e9bf4d1cd2..e7a816d5913d 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -5595,13 +5595,13 @@ static struct inode *btrfs_iget_locked(struct super_block *s, u64 ino, * allocator. NULL is also valid but may require an additional allocation * later. */ -struct inode *btrfs_iget_path(struct super_block *s, u64 ino, - struct btrfs_root *root, struct btrfs_path *path) +struct inode *btrfs_iget_path(u64 ino, struct btrfs_root *root, + struct btrfs_path *path) { struct inode *inode; int ret; - inode = btrfs_iget_locked(s, ino, root); + inode = btrfs_iget_locked(root->fs_info->sb, ino, root); if (!inode) return ERR_PTR(-ENOMEM); @@ -5632,7 +5632,7 @@ error: struct inode *btrfs_iget(u64 ino, struct btrfs_root *root) { - return btrfs_iget_path(root->fs_info->sb, ino, root, NULL); + return btrfs_iget_path(ino, root, NULL); } static struct inode *new_simple_dir(struct inode *dir, |
