summaryrefslogtreecommitdiff
path: root/src/gscope.c
blob: 59f58bde21f7e0b5dd30aec697eb7be0fbb54564 (plain)
1
/* Place holder file --- replace with actual gscope if you integrate it! */
/option>
authorJan Kara <jack@suse.cz>2016-05-12 18:29:19 +0200
committerRoss Zwisler <ross.zwisler@linux.intel.com>2016-05-19 15:27:49 -0600
commitbc2466e4257369d0ebee2b6265070d323343fa72 (patch)
treedc3c050e1b7bde8f0c93b1eb0764750f10331fed
parentac401cc782429cc8560ce4840b1405d603740917 (diff)
dax: Use radix tree entry lock to protect cow faults
When doing cow faults, we cannot directly fill in PTE as we do for other faults as we rely on generic code to do proper accounting of the cowed page. We also have no page to lock to protect against races with truncate as other faults have and we need the protection to extend until the moment generic code inserts cowed page into PTE thus at that point we have no protection of fs-specific i_mmap_sem. So far we relied on using i_mmap_lock for the protection however that is completely special to cow faults. To make fault locking more uniform use DAX entry lock instead. Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com> Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Diffstat