summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-06-11 17:48:28 +0100
committerDavid Sterba <dsterba@suse.com>2025-07-21 23:58:02 +0200
commit3887067f55a4ac6f9b2c938efa51f2d582b3925b (patch)
tree1a7753c8e45d3d0e23665f121ef88fc1ff9d4321 /tools/perf/scripts/python/export-to-sqlite.py
parent6fc5ef7829887c5a07c733013c6158ec47aa24f9 (diff)
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 <boris@bur.io> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions