58 nilfs = inode->
i_sb->s_fs_info;
67 static int nilfs_page_mkwrite(
struct vm_area_struct *vma,
struct vm_fault *vmf)
75 return VM_FAULT_SIGBUS;
77 sb_start_pagefault(inode->
i_sb);
80 page_offset(page) >= i_size_read(inode) || !PageUptodate(page)) {
89 if (PageMappedToDisk(page))
92 if (page_has_buffers(page)) {
93 struct buffer_head *bh, *
head;
96 bh = head = page_buffers(page);
98 if (!buffer_mapped(bh)) {
102 }
while (bh = bh->b_this_page, bh != head);
105 SetPageMappedToDisk(page);
129 wait_on_page_writeback(page);
131 sb_end_pagefault(inode->
i_sb);
132 return block_page_mkwrite_return(ret);
135 static const struct vm_operations_struct nilfs_file_vm_ops = {
137 .page_mkwrite = nilfs_page_mkwrite,
144 vma->
vm_ops = &nilfs_file_vm_ops;
162 .mmap = nilfs_file_mmap,