diff options
author | Qu Wenruo <wqu@suse.com> | 2020-08-13 14:33:52 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-10-07 12:06:54 +0200 |
commit | e21139c621ada48f2bc382865ea34dd49d45c2a8 (patch) | |
tree | f29e1b25a89d3fc2511b16f20e8a0861b3770520 /fs/btrfs/extent_map.h | |
parent | c4923027bd58cdccbe54e13298a4d914668a56da (diff) |
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/extent_map.h')
0 files changed, 0 insertions, 0 deletions