Browse Source

fs: cifs: Adding new return type vm_fault_t

Use new return type vm_fault_t for page_mkwrite
handler.

Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Reviewed-by: Matthew Wilcox <mawilcox@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Souptick Joarder 7 năm trước cách đây
mục cha
commit
a5240cbde2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      fs/cifs/file.c

+ 1 - 1
fs/cifs/file.c

@@ -3462,7 +3462,7 @@ cifs_read(struct file *file, char *read_data, size_t read_size, loff_t *offset)
  * If the page is mmap'ed into a process' page tables, then we need to make
  * If the page is mmap'ed into a process' page tables, then we need to make
  * sure that it doesn't change while being written back.
  * sure that it doesn't change while being written back.
  */
  */
-static int
+static vm_fault_t
 cifs_page_mkwrite(struct vm_fault *vmf)
 cifs_page_mkwrite(struct vm_fault *vmf)
 {
 {
 	struct page *page = vmf->page;
 	struct page *page = vmf->page;