btrfs: only require sector size alignment for end_bio_extent_writepage()
authorQu Wenruo <wqu@suse.com>
Mon, 31 May 2021 08:50:40 +0000 (16:50 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jun 2021 13:19:09 +0000 (15:19 +0200)
commit321a02db327a82aeaf9a114518705293cb8c2b31
tree52c361a7ea602a5a65e690c5f49ebd63e6d1ea22
parent60e2d25500aa74388bd0a30a39bb84249f2c75d5
btrfs: only require sector size alignment for end_bio_extent_writepage()

Just like read page, for subpage support we only require sector size
alignment.

So change the error message condition to only require sector alignment.

This should not affect existing code, as for regular sectorsize ==
PAGE_SIZE case, we are still requiring page alignment.

Tested-by: Ritesh Harjani <riteshh@linux.ibm.com> # [ppc64]
Tested-by: Anand Jain <anand.jain@oracle.com> # [aarch64]
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c