aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dax.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/dax.c')
-rw-r--r--fs/dax.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/dax.c b/fs/dax.c
index a237141d8787..6bf81f931de3 100644
--- a/fs/dax.c
+++ b/fs/dax.c
@@ -266,7 +266,7 @@ static void wait_entry_unlocked(struct xa_state *xas, void *entry)
266static void put_unlocked_entry(struct xa_state *xas, void *entry) 266static void put_unlocked_entry(struct xa_state *xas, void *entry)
267{ 267{
268 /* If we were the only waiter woken, wake the next one */ 268 /* If we were the only waiter woken, wake the next one */
269 if (entry && dax_is_conflict(entry)) 269 if (entry && !dax_is_conflict(entry))
270 dax_wake_entry(xas, entry, false); 270 dax_wake_entry(xas, entry, false);
271} 271}
272 272
@@ -600,7 +600,7 @@ struct page *dax_layout_busy_page(struct address_space *mapping)
600 * guaranteed to either see new references or prevent new 600 * guaranteed to either see new references or prevent new
601 * references from being established. 601 * references from being established.
602 */ 602 */
603 unmap_mapping_range(mapping, 0, 0, 1); 603 unmap_mapping_range(mapping, 0, 0, 0);
604 604
605 xas_lock_irq(&xas); 605 xas_lock_irq(&xas);
606 xas_for_each(&xas, entry, ULONG_MAX) { 606 xas_for_each(&xas, entry, ULONG_MAX) {