diff options
author | 2021-01-26 16:33:52 +0800 | |
---|---|---|
committer | 2021-02-08 22:59:02 +0100 | |
commit | a1d767c11cca0f9b6ddc56ea9561d441340d91a9 (patch) | |
tree | 73d31da7b5eceefaf5784e9db884d9f53e24a721 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | btrfs: attach private to dummy extent buffer pages (diff) | |
download | wireguard-linux-a1d767c11cca0f9b6ddc56ea9561d441340d91a9.tar.xz wireguard-linux-a1d767c11cca0f9b6ddc56ea9561d441340d91a9.zip |
btrfs: introduce helpers for subpage uptodate status
Introduce the following functions to handle subpage uptodate status:
- btrfs_subpage_set_uptodate()
- btrfs_subpage_clear_uptodate()
- btrfs_subpage_test_uptodate()
These helpers can only be called when the page has subpage attached
and the range is ensured to be inside the page.
- btrfs_page_set_uptodate()
- btrfs_page_clear_uptodate()
- btrfs_page_test_uptodate()
These helpers can handle both regular sector size and subpage.
Although caller should still ensure that the range is inside the page.
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions