diff options
Diffstat (limited to 'mm/filemap.c')
-rw-r--r-- | mm/filemap.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index c7fe2f16503f..db26ebc6c62f 100644 --- a/mm/filemap.c +++ b/mm/filemap.c | |||
@@ -137,13 +137,12 @@ static int page_cache_tree_insert(struct address_space *mapping, | |||
137 | } else { | 137 | } else { |
138 | /* DAX can replace empty locked entry with a hole */ | 138 | /* DAX can replace empty locked entry with a hole */ |
139 | WARN_ON_ONCE(p != | 139 | WARN_ON_ONCE(p != |
140 | (void *)(RADIX_TREE_EXCEPTIONAL_ENTRY | | 140 | dax_radix_locked_entry(0, RADIX_DAX_EMPTY)); |
141 | RADIX_DAX_ENTRY_LOCK)); | ||
142 | /* DAX accounts exceptional entries as normal pages */ | 141 | /* DAX accounts exceptional entries as normal pages */ |
143 | if (node) | 142 | if (node) |
144 | workingset_node_pages_dec(node); | 143 | workingset_node_pages_dec(node); |
145 | /* Wakeup waiters for exceptional entry lock */ | 144 | /* Wakeup waiters for exceptional entry lock */ |
146 | dax_wake_mapping_entry_waiter(mapping, page->index, | 145 | dax_wake_mapping_entry_waiter(mapping, page->index, p, |
147 | false); | 146 | false); |
148 | } | 147 | } |
149 | } | 148 | } |