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.
Showing the changes to include/linux/buffer_head.h (1 of 3 files). Show all
Unified · Split
| @@ -242,7 +242,7 @@ int block_commit_write(struct page *page, unsigned from, unsigned to); · 241 unmodified lines | |||
| 242 | int block_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf, | 242 | int block_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf, |
| 243 | get_block_t get_block); | 243 | get_block_t get_block); |
| 244 | /* Convert errno to return value from ->page_mkwrite() call */ | 244 | /* Convert errno to return value from ->page_mkwrite() call */ |
| 245 | static inline int block_page_mkwrite_return(int err) | 245 | static inline vm_fault_t block_page_mkwrite_return(int err) |
| 246 | { | 246 | { |
| 247 | if (err == 0) | 247 | if (err == 0) |
| 248 | return VM_FAULT_LOCKED; | 248 | return VM_FAULT_LOCKED; |