summaryrefslogtreecommitdiffstats
path: root/include/linux/iomap.h
diff options
context:
space:
mode:
authorJan Kara2016-11-10 00:26:50 +0100
committerDave Chinner2016-11-10 00:26:50 +0100
commit9484ab1bf4464faae695321dd4fa66365beda74e (patch)
treef9fabeb09ceccf608881a9a72d0601b88cc4732b /include/linux/iomap.h
parentdax: remove "depends on BROKEN" from FS_DAX_PMD (diff)
downloadkernel-qcow2-linux-9484ab1bf4464faae695321dd4fa66365beda74e.tar.gz
kernel-qcow2-linux-9484ab1bf4464faae695321dd4fa66365beda74e.tar.xz
kernel-qcow2-linux-9484ab1bf4464faae695321dd4fa66365beda74e.zip
dax: Introduce IOMAP_FAULT flag
Introduce a flag telling iomap operations whether they are handling a fault or other IO. That may influence behavior wrt inode size and similar things. Signed-off-by: Jan Kara <jack@suse.cz> Reviewed-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'include/linux/iomap.h')
-rw-r--r--include/linux/iomap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/iomap.h b/include/linux/iomap.h
index e63e288dee83..b9e7b8ec8c1d 100644
--- a/include/linux/iomap.h
+++ b/include/linux/iomap.h
@@ -44,6 +44,7 @@ struct iomap {
*/
#define IOMAP_WRITE (1 << 0)
#define IOMAP_ZERO (1 << 1)
+#define IOMAP_FAULT (1 << 3) /* mapping for page fault */
struct iomap_ops {
/*