summaryrefslogtreecommitdiff
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2024-04-11 20:26:56 +0300
committerDavid Sterba <dsterba@suse.com>2024-05-07 22:31:03 +0300
commitafcb80624f5bc2fd2f40dc8a7f4fc2198a68e40f (patch)
tree54e0c3ebd73ec657b13b42ab5e73dc50983d0e93 /fs/btrfs/inode.c
parentd800a9065b1e44e1cceb05990e7ebe73284b5f6d (diff)
downloadlinux-afcb80624f5bc2fd2f40dc8a7f4fc2198a68e40f.tar.xz
btrfs: remove search_commit parameter from btrfs_lookup_csums_list()
All the callers of btrfs_lookup_csums_list() pass a value of 0 as the "search_commit" parameter. So remove it and make the function behave as to always search from the regular root. 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 7c009bbc1a5c..f4c54596c5c4 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -1745,7 +1745,7 @@ static noinline int csum_exist_in_range(struct btrfs_fs_info *fs_info,
LIST_HEAD(list);
ret = btrfs_lookup_csums_list(csum_root, bytenr, bytenr + num_bytes - 1,
- &list, 0, nowait);
+ &list, nowait);
if (ret == 0 && list_empty(&list))
return 0;