diff options
author | 2021-01-26 16:33:49 +0800 | |
---|---|---|
committer | 2021-02-08 22:59:01 +0100 | |
commit | 819822107d8837fc3363ceaeb172b981c8600a2b (patch) | |
tree | 13e5ef85ffbe8ea9ab2e4320c479cdc65018d376 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | btrfs: make attach_extent_buffer_page() handle subpage case (diff) | |
download | wireguard-linux-819822107d8837fc3363ceaeb172b981c8600a2b.tar.xz wireguard-linux-819822107d8837fc3363ceaeb172b981c8600a2b.zip |
btrfs: make grab_extent_buffer_from_page() handle subpage case
For subpage case, grab_extent_buffer() can't really get an extent buffer
just from btrfs_subpage.
We have radix tree lock protecting us from inserting the same eb into
the tree. Thus we don't really need to do the extra hassle, just let
alloc_extent_buffer() handle the existing eb in radix tree.
Now if two ebs are being allocated as the same time, one will fail with
-EEIXST when inserting into the radix tree.
So for grab_extent_buffer(), just always return NULL for subpage case.
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