aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2025-06-11 16:48:28 +0000
committerDavid Sterba <[email protected]>2025-07-21 21:58:02 +0000
commit3887067f55a4ac6f9b2c938efa51f2d582b3925b (patch)
tree1a7753c8e45d3d0e23665f121ef88fc1ff9d4321 /fs/btrfs/tree-log.c
parentbtrfs: add btrfs prefix to free space tree exported functions (diff)
downloadkernel-3887067f55a4ac6f9b2c938efa51f2d582b3925b.tar.gz
kernel-3887067f55a4ac6f9b2c938efa51f2d582b3925b.zip
btrfs: rename free_space_set_bits() and make it less confusing
The free_space_set_bits() is used both to set a range of bits or to clear range of bits, depending on the 'bit' argument value. So the name is very misleading since it's not used only to set bits. Furthermore the 'bit' argument is an integer when a boolean is all that is needed plus its name is singular, which gives the idea the function operates on a single bit and not on a range of bits. So rename the function to free_space_modify_bits(), rename the 'bit' argument to 'set_bits' and turn the argument to bool instead of int. Reviewed-by: Boris Burkov <[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/tree-log.c')
0 files changed, 0 insertions, 0 deletions