aboutsummaryrefslogtreecommitdiffstats
path: root/mm/filemap.c
diff options
context:
space:
mode:
authorRoss Zwisler <ross.zwisler@linux.intel.com>2016-11-07 19:32:20 -0500
committerDave Chinner <david@fromorbit.com>2016-11-07 19:32:20 -0500
commit63e95b5c4f16e156b98adcf2f7d820ba941c82a3 (patch)
treed8f6bf08bde092b10bf5222dec67fec720e89376 /mm/filemap.c
parente3ad61c64abceeb5cc122f0bde3700e6e17ca60a (diff)
dax: coordinate locking for offsets in PMD range
DAX radix tree locking currently locks entries based on the unique combination of the 'mapping' pointer and the pgoff_t 'index' for the entry. This works for PTEs, but as we move to PMDs we will need to have all the offsets within the range covered by the PMD to map to the same bit lock. To accomplish this, for ranges covered by a PMD entry we will instead lock based on the page offset of the beginning of the PMD entry. The 'mapping' pointer is still used in the same way. Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'mm/filemap.c')
-rw-r--r--mm/filemap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/filemap.c b/mm/filemap.c
index 849f459ad078..1ffb7dcd1b5d 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -143,7 +143,7 @@ static int page_cache_tree_insert(struct address_space *mapping,
143 if (node) 143 if (node)
144 workingset_node_pages_dec(node); 144 workingset_node_pages_dec(node);
145 /* Wakeup waiters for exceptional entry lock */ 145 /* Wakeup waiters for exceptional entry lock */
146 dax_wake_mapping_entry_waiter(mapping, page->index, 146 dax_wake_mapping_entry_waiter(mapping, page->index, p,
147 false); 147 false);
148 } 148 }
149 } 149 }