summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSouptick Joarder <jrdr.linux@gmail.com>2018-04-15 01:40:02 +0530
committerJaegeuk Kim <jaegeuk@kernel.org>2018-05-31 11:31:46 -0700
commitea4d479bb3603726128a06fe8f127a191f1c8a68 (patch)
tree67578b1ff291a7f7889e7fcf9c38aaa6095905b6
parentd6964949e443077b1d32d78e76ea02b4c9da7748 (diff)
downloadlinux-ea4d479bb3603726128a06fe8f127a191f1c8a68.tar.gz
linux-ea4d479bb3603726128a06fe8f127a191f1c8a68.tar.bz2
linux-ea4d479bb3603726128a06fe8f127a191f1c8a68.zip
fs: f2fs: Adding new return type vm_fault_t
Use new return type vm_fault_t for page_mkwrite and fault handler. Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com> Reviewed-by: Matthew Wilcox <mawilcox@microsoft.com> Acked-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r--fs/f2fs/file.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index 97bb4af8d8d6..f639b5fcd66f 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -33,19 +33,19 @@
#include "trace.h"
#include <trace/events/f2fs.h>
-static int f2fs_filemap_fault(struct vm_fault *vmf)
+static vm_fault_t f2fs_filemap_fault(struct vm_fault *vmf)
{
struct inode *inode = file_inode(vmf->vma->vm_file);
- int err;
+ vm_fault_t ret;
down_read(&F2FS_I(inode)->i_mmap_sem);
- err = filemap_fault(vmf);
+ ret = filemap_fault(vmf);
up_read(&F2FS_I(inode)->i_mmap_sem);
- return err;
+ return ret;
}
-static int f2fs_vm_page_mkwrite(struct vm_fault *vmf)
+static vm_fault_t f2fs_vm_page_mkwrite(struct vm_fault *vmf)
{
struct page *page = vmf->page;
struct inode *inode = file_inode(vmf->vma->vm_file);