diff options
author | Souptick Joarder <jrdr.linux@gmail.com> | 2018-10-03 05:20:50 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2018-10-03 05:20:50 +0300 |
commit | 401b25aa1a75e7fe4e3202a6336604269697d705 (patch) | |
tree | 6506f794016ad7f8e905e33cd5faa5090a0f4dd7 /include/linux/buffer_head.h | |
parent | 625ef8a3acd111d5f496d190baf99d1a815bd03e (diff) | |
download | linux-401b25aa1a75e7fe4e3202a6336604269697d705.tar.xz |
ext4: convert fault handler to use vm_fault_t type
Return type of ext4_page_mkwrite and ext4_filemap_fault are
changed to use vm_fault_t type.
With this patch all the callers of block_page_mkwrite_return()
are changed to handle vm_fault_t. So converting the return type
of block_page_mkwrite_return() to vm_fault_t.
Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Matthew Wilcox <willy@infradead.org>
Diffstat (limited to 'include/linux/buffer_head.h')
-rw-r--r-- | include/linux/buffer_head.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/buffer_head.h b/include/linux/buffer_head.h index 96225a77c112..7b73ef7f902d 100644 --- a/include/linux/buffer_head.h +++ b/include/linux/buffer_head.h @@ -242,7 +242,7 @@ int block_commit_write(struct page *page, unsigned from, unsigned to); int block_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf, get_block_t get_block); /* Convert errno to return value from ->page_mkwrite() call */ -static inline int block_page_mkwrite_return(int err) +static inline vm_fault_t block_page_mkwrite_return(int err) { if (err == 0) return VM_FAULT_LOCKED; |