summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/node.c
diff options
context:
space:
mode:
authorMatthew Wilcox <willy@infradead.org>2017-12-04 20:25:25 -0500
committerMatthew Wilcox <willy@infradead.org>2018-10-21 10:46:42 -0400
commit5ec2d99de7427c84bb7250d23f5acf49a3670a63 (patch)
tree28161331b753dc379fcadc424fa3eb640b6fdb80 /fs/f2fs/node.c
parentf611ff63751afa421edc1eddf4281de13e082c51 (diff)
downloadlinux-stable-5ec2d99de7427c84bb7250d23f5acf49a3670a63.tar.gz
linux-stable-5ec2d99de7427c84bb7250d23f5acf49a3670a63.tar.bz2
linux-stable-5ec2d99de7427c84bb7250d23f5acf49a3670a63.zip
f2fs: Convert to XArray
This is a straightforward conversion. Signed-off-by: Matthew Wilcox <willy@infradead.org>
Diffstat (limited to 'fs/f2fs/node.c')
-rw-r--r--fs/f2fs/node.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c
index dd2e45a661aa..0bae5eda056a 100644
--- a/fs/f2fs/node.c
+++ b/fs/f2fs/node.c
@@ -104,7 +104,7 @@ bool f2fs_available_free_memory(struct f2fs_sb_info *sbi, int type)
static void clear_node_page_dirty(struct page *page)
{
if (PageDirty(page)) {
- f2fs_clear_radix_tree_dirty_tag(page);
+ f2fs_clear_page_cache_dirty_tag(page);
clear_page_dirty_for_io(page);
dec_page_count(F2FS_P_SB(page), F2FS_DIRTY_NODES);
}
@@ -1307,9 +1307,7 @@ void f2fs_ra_node_page(struct f2fs_sb_info *sbi, nid_t nid)
if (f2fs_check_nid_range(sbi, nid))
return;
- rcu_read_lock();
- apage = radix_tree_lookup(&NODE_MAPPING(sbi)->i_pages, nid);
- rcu_read_unlock();
+ apage = xa_load(&NODE_MAPPING(sbi)->i_pages, nid);
if (apage)
return;