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/sysfs.h | |
| parent | btrfs: fix possible infinite loop in data async reclaim (diff) | |
| download | linux-e21139c621ada48f2bc382865ea34dd49d45c2a8.tar.gz linux-e21139c621ada48f2bc382865ea34dd49d45c2a8.zip | |
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
