btrfs: split page locking out of __process_pages_contig
authorChristoph Hellwig <hch@lst.de>
Wed, 28 Jun 2023 15:31:24 +0000 (17:31 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Aug 2023 12:52:14 +0000 (14:52 +0200)
commitef4e88e6a55babd825aed2940a72a0562f49ca7e
tree529525e08cc78632fa9278853cd12f1f6f33a8bd
parent53ffb30a784d30db4d4cd074b4da46fa2472ab60
btrfs: split page locking out of __process_pages_contig

There is a lot of complexity in __process_pages_contig to deal with the
PAGE_LOCK case that can return an error unlike all the other actions.

Open code the page iteration for page locking in lock_delalloc_pages and
remove all the now unused code from __process_pages_contig.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h