diff options
author | 2021-01-26 16:33:55 +0800 | |
---|---|---|
committer | 2021-02-08 22:59:02 +0100 | |
commit | 92d83e94365706fa3250b0e43bdab5995ac03046 (patch) | |
tree | 85832a6df418543ae078aa013ae1214bbcf055f3 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | btrfs: support subpage in set/clear_extent_buffer_uptodate() (diff) | |
download | wireguard-linux-92d83e94365706fa3250b0e43bdab5995ac03046.tar.xz wireguard-linux-92d83e94365706fa3250b0e43bdab5995ac03046.zip |
btrfs: support subpage in btrfs_clone_extent_buffer
For btrfs_clone_extent_buffer(), it's mostly the same code of
__alloc_dummy_extent_buffer(), except it has extra page copy.
So to make it subpage compatible, we only need to:
- Call set_extent_buffer_uptodate() instead of SetPageUptodate()
This will set correct uptodate bit for subpage and regular sector size
cases.
Since we're calling set_extent_buffer_uptodate() which will also set
EXTENT_BUFFER_UPTODATE bit, we don't need to manually set that bit
either.
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