summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2020-10-21 14:24:51 +0800
committerDavid Sterba <dsterba@suse.com>2020-12-08 15:53:54 +0100
commit3f6bb4aeb5dfa392dac438e816959ccb9c690896 (patch)
tree32c13c635aef6a45bdabe9eed8a821bc9a36ea8c /fs/btrfs/inode.c
parent03509b781ae98d4cf5cc139f89a3e75467b829a8 (diff)
btrfs: sink the failed_start parameter to set_extent_bit
The @failed_start parameter is only paired with @exclusive_bits, and those parameters are only used for EXTENT_LOCKED bit, which have their own wrappers lock_extent_bits(). Thus for regular set_extent_bit() calls, the failed_start makes no sense, just sink the parameter. Also, since @failed_start and @exclusive_bits are used in pairs, add an assert to make it obvious. Signed-off-by: Qu Wenruo <wqu@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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 2c97169b6e26..ad72f68573f1 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -4717,8 +4717,7 @@ again:
if (only_release_metadata)
set_extent_bit(&BTRFS_I(inode)->io_tree, block_start,
- block_end, EXTENT_NORESERVE, NULL, NULL,
- GFP_NOFS);
+ block_end, EXTENT_NORESERVE, NULL, GFP_NOFS);
out_unlock:
if (ret) {