btrfs: replace delete argument with EXTENT_CLEAR_ALL_BITS
authorJosef Bacik <josef@toxicpanda.com>
Fri, 9 Sep 2022 21:53:47 +0000 (17:53 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2022 10:28:05 +0000 (12:28 +0200)
commitbd015294af4d919f94ede252e035f3c11638ea1f
tree8e1aa94701d1921e7721ef58aabf86cb6a55c0fb
parentb71fb16b2f41e7ba59cbee22fdb81665f0af08fc
btrfs: replace delete argument with EXTENT_CLEAR_ALL_BITS

Instead of taking up a whole argument to indicate we're clearing
everything in a range, simply add another EXTENT bit to control this,
and then update all the callers to drop this argument from the
clear_extent_bit variants.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
12 files changed:
fs/btrfs/extent-io-tree.c
fs/btrfs/extent-io-tree.h
fs/btrfs/extent_io.c
fs/btrfs/extent_map.c
fs/btrfs/file-item.c
fs/btrfs/file.c
fs/btrfs/free-space-cache.c
fs/btrfs/inode.c
fs/btrfs/ioctl.c
fs/btrfs/reflink.c
fs/btrfs/tests/inode-tests.c
fs/btrfs/transaction.c