Re: [PATCH] btrfs: cleanup how we calculate lockend in lock_and_cleanup_extent_if_need()

David Sterba
2020-08-17T12:19:08Z

On Thu, Aug 13, 2020 at 02:33:52PM +0800, Qu Wenruo wrote:
> 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.
>
> Signed-off-by: Qu Wenruo <wqu@suse.com>

Added to misc-next, thanks.