diff options
| author | Filipe Manana <[email protected]> | 2025-07-11 08:46:16 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-07-21 22:09:22 +0000 |
| commit | d6be378de06c8ae72c46d528f69cc53fa382b01c (patch) | |
| tree | b59cfd3a7dc8f12dfacfe36812d9bd41e730cbc5 /fs/btrfs/qgroup.c | |
| parent | btrfs: use cached state when falling back from NOCoW write to CoW write (diff) | |
| download | kernel-d6be378de06c8ae72c46d528f69cc53fa382b01c.tar.gz kernel-d6be378de06c8ae72c46d528f69cc53fa382b01c.zip | |
btrfs: remove btrfs_clear_extent_bits()
It's just a simple wrapper around btrfs_clear_extent_bit() that passes a
NULL for its last argument (a cached extent state record), plus there is
not counter part - we have a btrfs_set_extent_bit() but we do not have a
btrfs_set_extent_bits() (plural version). So just remove it and make all
callers use btrfs_clear_extent_bit() directly.
Reviewed-by: Qu Wenruo <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Filipe Manana <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/qgroup.c')
| -rw-r--r-- | fs/btrfs/qgroup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/qgroup.c b/fs/btrfs/qgroup.c index ae9bc7c71a34..1a5972178b3a 100644 --- a/fs/btrfs/qgroup.c +++ b/fs/btrfs/qgroup.c @@ -4116,8 +4116,8 @@ static int qgroup_unreserve_range(struct btrfs_inode *inode, * Now the entry is in [start, start + len), revert the * EXTENT_QGROUP_RESERVED bit. */ - clear_ret = btrfs_clear_extent_bits(&inode->io_tree, entry_start, - entry_end, EXTENT_QGROUP_RESERVED); + clear_ret = btrfs_clear_extent_bit(&inode->io_tree, entry_start, entry_end, + EXTENT_QGROUP_RESERVED, NULL); if (!ret && clear_ret < 0) ret = clear_ret; |
