]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: sink the failed_start parameter to set_extent_bit
authorQu Wenruo <wqu@suse.com>
Wed, 21 Oct 2020 06:24:51 +0000 (14:24 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 8 Dec 2020 14:53:54 +0000 (15:53 +0100)
commit113a8430f5176ece6d41b09c760642b051cb053d
tree32c13c635aef6a45bdabe9eed8a821bc9a36ea8c
parentbbe1067ff8d70fcb444671336b770caa5b1e176d
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>
fs/btrfs/extent-io-tree.h
fs/btrfs/extent_io.c
fs/btrfs/inode.c