Re: [PATCH v2 0/2] btrfs: btrfs_dec_test_*_ordered_extent() refactor
From: David Sterba <hidden>
Date: 2021-01-12 14:32:44
From: David Sterba <hidden>
Date: 2021-01-12 14:32:44
On Tue, Dec 22, 2020 at 01:59:22PM +0800, Qu Wenruo wrote:
This small patchset is btrfs_dec_test_*_ordered_extent() refactor during subpage RW support development. This is mostly to make btrfs_dev_test_* functions more human readable and prepare it for calling btrfs_dec_test_first_ordered_extent() in btrfs_writepage_endio_finish_ordered() where we can have one or more ordered extents for one bvec. The first patch is a very safe width reduction, where there is only one assginment. Thus it should be very safe and won't be involved in other call sites.
I've added a comment to the 'bytes' and reworded some comments in the 2nd patch, now added to misc-next, thanks.