diff options
author | Filipe Manana <fdmanana@suse.com> | 2023-09-22 13:37:22 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2023-10-12 17:44:12 +0300 |
commit | 8b9d032225be93f80ebdd7ba933846acd1bd9f16 (patch) | |
tree | e7fbd16abaffa050bc7cf90ea747bc8b37f4a1cb /fs/btrfs/ioctl.c | |
parent | 0a5d0dc55fcb15da016fa28d27bf50ca7f17ec11 (diff) | |
download | linux-8b9d032225be93f80ebdd7ba933846acd1bd9f16.tar.xz |
btrfs: remove redundant root argument from btrfs_update_inode()
The root argument for btrfs_update_inode() always matches the root of the
given inode, so remove the root argument and get it from the inode
argument.
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/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 6dc089a9a548..848b7e6f6421 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -385,7 +385,7 @@ update_flags: btrfs_sync_inode_flags_to_i_flags(inode); inode_inc_iversion(inode); inode_set_ctime_current(inode); - ret = btrfs_update_inode(trans, root, BTRFS_I(inode)); + ret = btrfs_update_inode(trans, BTRFS_I(inode)); out_end_trans: btrfs_end_transaction(trans); |