diff options
author | Qu Wenruo <wqu@suse.com> | 2021-01-26 16:33:51 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2021-02-08 22:59:02 +0100 |
commit | 09bc1f0fb845a6435e2c6c5d3c937f7a674e816a (patch) | |
tree | 9d673ab096470357f596a30ae5d0471ab7cca20d /fs/btrfs/subpage.c | |
parent | 8ff8466d29efc226648c3c5e57590428d798a6ea (diff) | |
download | lwn-09bc1f0fb845a6435e2c6c5d3c937f7a674e816a.tar.gz lwn-09bc1f0fb845a6435e2c6c5d3c937f7a674e816a.zip |
btrfs: attach private to dummy extent buffer pages
There are locations where we allocate dummy extent buffers for temporary
usage, like in tree_mod_log_rewind() or get_old_root().
These dummy extent buffers will be handled by the same eb accessors, and
if they don't have page::private subpage eb accessors could fail.
To address such problems, make __alloc_dummy_extent_buffer() attach
page private for dummy extent buffers too.
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 'fs/btrfs/subpage.c')
0 files changed, 0 insertions, 0 deletions