diff options
author | Christoph Hellwig <hch@lst.de> | 2017-08-29 10:08:41 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-09-01 10:55:30 -0700 |
commit | e7647fb49167809502724eb3c402cea77716fc67 (patch) | |
tree | 662b31240fc64d1191df2a4aea6b8d3ff2008a6f /fs/iomap.c | |
parent | 2dd3d709fc4338681a3aa61658122fa8faa5a437 (diff) | |
download | linux-stable-e7647fb49167809502724eb3c402cea77716fc67.tar.gz linux-stable-e7647fb49167809502724eb3c402cea77716fc67.tar.bz2 linux-stable-e7647fb49167809502724eb3c402cea77716fc67.zip |
iomap: return VM_FAULT_* codes from iomap_page_mkwrite
All callers will need the VM_FAULT_* flags, so convert in the helper.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/iomap.c')
-rw-r--r-- | fs/iomap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/iomap.c b/fs/iomap.c index 59cc98ad7577..8554a8d75281 100644 --- a/fs/iomap.c +++ b/fs/iomap.c @@ -477,10 +477,10 @@ int iomap_page_mkwrite(struct vm_fault *vmf, const struct iomap_ops *ops) set_page_dirty(page); wait_for_stable_page(page); - return 0; + return VM_FAULT_LOCKED; out_unlock: unlock_page(page); - return ret; + return block_page_mkwrite_return(ret); } EXPORT_SYMBOL_GPL(iomap_page_mkwrite); |