commit | b93b016313b3ba8003c3b8bb71f569af91f19fc7 | [log] [tgz] |
---|---|---|
author | Matthew Wilcox <[email protected]> | Tue Apr 10 16:36:56 2018 -0700 |
committer | Linus Torvalds <[email protected]> | Wed Apr 11 10:28:39 2018 -0700 |
tree | ad4be96414189dcdf8c972f351ba430996e9fdff | |
parent | f6bb2a2c0b81c47282ddb7883f92e65a063c27dd [diff] [blame] |
page cache: use xa_lock Remove the address_space ->tree_lock and use the xa_lock newly added to the radix_tree_root. Rename the address_space ->page_tree to ->i_pages, since we don't really care that it's a tree. [[email protected]: fix nds32, fs/dax.c] Link: http://lkml.kernel.org/r/[email protected]: http://lkml.kernel.org/r/[email protected] Signed-off-by: Matthew Wilcox <[email protected]> Acked-by: Jeff Layton <[email protected]> Cc: Darrick J. Wong <[email protected]> Cc: Dave Chinner <[email protected]> Cc: Ryusuke Konishi <[email protected]> Cc: Will Deacon <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c index 562c3e6..578181c 100644 --- a/fs/btrfs/compression.c +++ b/fs/btrfs/compression.c
@@ -458,7 +458,7 @@ static noinline int add_ra_bio_pages(struct inode *inode, break; rcu_read_lock(); - page = radix_tree_lookup(&mapping->page_tree, pg_index); + page = radix_tree_lookup(&mapping->i_pages, pg_index); rcu_read_unlock(); if (page && !radix_tree_exceptional_entry(page)) { misses++;