diff options
author | Matthew Wilcox <willy@infradead.org> | 2017-12-04 18:37:22 +0300 |
---|---|---|
committer | Matthew Wilcox <willy@infradead.org> | 2018-10-21 17:46:41 +0300 |
commit | 0a943c65e7d7207dce2a63e9d14a925c0d9a7d96 (patch) | |
tree | 1dc158564603ef4f4280e624b737821b243950e6 /fs/btrfs/compression.c | |
parent | 7f4446eefe9fbbe68e9543946c9a20f67897ff9b (diff) | |
download | linux-0a943c65e7d7207dce2a63e9d14a925c0d9a7d96.tar.xz |
btrfs: Convert page cache to XArray
Signed-off-by: Matthew Wilcox <willy@infradead.org>
Acked-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/compression.c')
-rw-r--r-- | fs/btrfs/compression.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c index fd25e125303c..a65d144da00c 100644 --- a/fs/btrfs/compression.c +++ b/fs/btrfs/compression.c @@ -437,9 +437,7 @@ static noinline int add_ra_bio_pages(struct inode *inode, if (pg_index > end_index) break; - rcu_read_lock(); - page = radix_tree_lookup(&mapping->i_pages, pg_index); - rcu_read_unlock(); + page = xa_load(&mapping->i_pages, pg_index); if (page && !xa_is_value(page)) { misses++; if (misses > 4) |