diff options
author | Jan Kara <jack@suse.cz> | 2016-11-10 10:26:50 +1100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2016-11-10 10:26:50 +1100 |
commit | 9484ab1bf4464faae695321dd4fa66365beda74e (patch) | |
tree | f9fabeb09ceccf608881a9a72d0601b88cc4732b /fs/iomap.c | |
parent | 190b5caad750942c0791889b809ce04b1eede43d (diff) |
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 'fs/iomap.c')
-rw-r--r-- | fs/iomap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/iomap.c b/fs/iomap.c index 013d1d36fbbf..51a02573405e 100644 --- a/fs/iomap.c +++ b/fs/iomap.c @@ -468,8 +468,9 @@ int iomap_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf, offset = page_offset(page); while (length > 0) { - ret = iomap_apply(inode, offset, length, IOMAP_WRITE, - ops, page, iomap_page_mkwrite_actor); + ret = iomap_apply(inode, offset, length, + IOMAP_WRITE | IOMAP_FAULT, ops, page, + iomap_page_mkwrite_actor); if (unlikely(ret <= 0)) goto out_unlock; offset += ret; |