History

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.

Souptick Joarder committed 8 years ago

Commit 401b25a1 parent 625ef8a3 files · +18 −17Browse files

Showing the changes to include/linux/buffer_head.h (1 of 3 files). Show all

Unified · Split

include/linux/buffer_head.h+1−1
@@ -242,7 +242,7 @@ int block_commit_write(struct page *page, unsigned from, unsigned to); · 241 unmodified lines
242int block_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf,242int 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 */
245static inline int block_page_mkwrite_return(int err)245static 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;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t