aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ordered-data.c
diff options
context:
space:
mode:
authorQu Wenruo <[email protected]>2021-05-31 08:50:45 +0000
committerDavid Sterba <[email protected]>2021-06-21 13:19:09 +0000
commit6f17400bd92e82ad549ea5374ffc71e35e2e4ee5 (patch)
tree7c46040ebbc9ad82076931764e12a753277304d3 /fs/btrfs/ordered-data.c
parentbtrfs: make process_one_page() to handle subpage locking (diff)
downloadkernel-6f17400bd92e82ad549ea5374ffc71e35e2e4ee5.tar.gz
kernel-6f17400bd92e82ad549ea5374ffc71e35e2e4ee5.zip
btrfs: introduce helpers for subpage ordered status
This patch introduces the following functions to handle btrfs subpage ordered (Private2) status: - btrfs_subpage_set_ordered() - btrfs_subpage_clear_ordered() - btrfs_subpage_test_ordered() These helpers can only be called when the range is ensured to be inside the page. - btrfs_page_set_ordered() - btrfs_page_clear_ordered() - btrfs_page_test_ordered() These helpers can handle both regular sector size and subpage without problem. These functions are here to coordinate btrfs_invalidatepage() with btrfs_writepage_endio_finish_ordered(), to make sure only one of those functions can finish the ordered extent. Tested-by: Ritesh Harjani <[email protected]> # [ppc64] Tested-by: Anand Jain <[email protected]> # [aarch64] Signed-off-by: Qu Wenruo <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/ordered-data.c')
0 files changed, 0 insertions, 0 deletions