summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/sysfs.h
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2020-08-13 14:33:52 +0800
committerDavid Sterba <dsterba@suse.com>2020-10-07 12:06:54 +0200
commite21139c621ada48f2bc382865ea34dd49d45c2a8 (patch)
treef29e1b25a89d3fc2511b16f20e8a0861b3770520 /fs/btrfs/sysfs.h
parentc4923027bd58cdccbe54e13298a4d914668a56da (diff)
downloadlinux-e21139c621ada48f2bc382865ea34dd49d45c2a8.tar.bz2
btrfs: cleanup calculation of lockend in lock_and_cleanup_extent_if_need()
We're just doing rounding up to sectorsize to calculate the lockend. There is no need to do the unnecessary length calculation, just direct round_up() is enough. Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/sysfs.h')
0 files changed, 0 insertions, 0 deletions