]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: stop passing root argument to btrfs_add_delalloc_inodes()
authorFilipe Manana <fdmanana@suse.com>
Thu, 8 Feb 2024 15:32:36 +0000 (15:32 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 4 Mar 2024 15:24:49 +0000 (16:24 +0100)
commit8a46e55a6cbb0c795c4b5a31139c9f2a6eca6589
tree2f6b90edf04415178ff575b5dc0d85e38ba9f737
parent5693a1286aa697fadf8fc8c7abef122ec90ee10c
btrfs: stop passing root argument to btrfs_add_delalloc_inodes()

There's no need to pass a root argument to btrfs_add_delalloc_inodes(), we
can just pass the inode since the root is always the root associated to
the inode in the context it's called. So remove it and have the single
caller pass only the inode.

Reviewed-by: Boris Burkov <boris@bur.io>
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>
fs/btrfs/inode.c