summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-10-12 10:26:40 +0100
committerDavid Sterba <dsterba@suse.com>2025-11-24 21:59:08 +0100
commitb917a94a4c085a307069790a0527f9492fc70700 (patch)
tree1ce981db08e126c29e22209e20be5ed513c83c8d /tools/perf/scripts/python
parent28fe58ce6a20aa674076645bcfc1be126a12ed4b (diff)
downloadlinux-b917a94a4c085a307069790a0527f9492fc70700.tar.gz
linux-b917a94a4c085a307069790a0527f9492fc70700.zip
btrfs: consistently round up or down i_size in btrfs_truncate()
We're using different ways to round down the i_size by sector size, one with a bitwise and with a negated mask and another with ALIGN_DOWN(), and using ALIGN() to round up. Replace these uses with the round_down() and round_up() macros which have have names that make it clear the direction of the rounding (unlike the ALIGN() macro) and getting rid of the bitwise and, negated mask and local variable for the mask. Reviewed-by: Qu Wenruo <wqu@suse.com> Reviewed-by: Anand Jain <asj@kernel.org> 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')
0 files changed, 0 insertions, 0 deletions