summaryrefslogtreecommitdiffstats
path: root/include/linux/dax.h
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2016-05-12 18:29:17 +0200
committerRoss Zwisler <ross.zwisler@linux.intel.com>2016-05-19 15:18:30 -0600
commit4f622938a5e2b7f1374ffb1e5fc212744898f513 (patch)
treef1b5d575014d9c988d6ae1711a54d6909713ac3a /include/linux/dax.h
parente804315dd0f574b56155c5a2406ab5e0318104f7 (diff)
downloadblackbird-op-linux-4f622938a5e2b7f1374ffb1e5fc212744898f513.tar.gz
blackbird-op-linux-4f622938a5e2b7f1374ffb1e5fc212744898f513.zip
dax: Allow DAX code to replace exceptional entries
Currently we forbid page_cache_tree_insert() to replace exceptional radix tree entries for DAX inodes. However to make DAX faults race free we will lock radix tree entries and when hole is created, we need to replace such locked radix tree entry with a hole page. So modify page_cache_tree_insert() to allow that. 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 (limited to 'include/linux/dax.h')
-rw-r--r--include/linux/dax.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/dax.h b/include/linux/dax.h
index 70600b63083f..aa148937bb3f 100644
--- a/include/linux/dax.h
+++ b/include/linux/dax.h
@@ -3,6 +3,7 @@
#include <linux/fs.h>
#include <linux/mm.h>
+#include <linux/radix-tree.h>
#include <asm/pgtable.h>
/* We use lowest available exceptional entry bit for locking */
OpenPOWER on IntegriCloud