diff options
author | Matthew Wilcox <willy@infradead.org> | 2017-12-06 01:04:20 +0100 |
---|---|---|
committer | Matthew Wilcox <willy@infradead.org> | 2018-10-21 16:46:44 +0200 |
commit | a28334862993b5c6a8766f6963ee69048403817c (patch) | |
tree | 5b5e5d483ba7a24789c55fae89ff79c4a2efc6c6 /fs/inode.c | |
parent | dax: Convert page fault handlers to XArray (diff) | |
download | linux-a28334862993b5c6a8766f6963ee69048403817c.tar.xz linux-a28334862993b5c6a8766f6963ee69048403817c.zip |
page cache: Finish XArray conversion
With no more radix tree API users left, we can drop the GFP flags
and use xa_init() instead of INIT_RADIX_TREE().
Signed-off-by: Matthew Wilcox <willy@infradead.org>
Diffstat (limited to 'fs/inode.c')
-rw-r--r-- | fs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/inode.c b/fs/inode.c index 42f6d25f32a5..9b808986d440 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -349,7 +349,7 @@ EXPORT_SYMBOL(inc_nlink); static void __address_space_init_once(struct address_space *mapping) { - INIT_RADIX_TREE(&mapping->i_pages, GFP_ATOMIC | __GFP_ACCOUNT); + xa_init_flags(&mapping->i_pages, XA_FLAGS_LOCK_IRQ); init_rwsem(&mapping->i_mmap_rwsem); INIT_LIST_HEAD(&mapping->private_list); spin_lock_init(&mapping->private_lock); |