diff options
Diffstat (limited to 'fs/nilfs2/file.c')
| -rw-r--r-- | fs/nilfs2/file.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nilfs2/file.c b/fs/nilfs2/file.c index a4d56ac02e6..61946883025 100644 --- a/fs/nilfs2/file.c +++ b/fs/nilfs2/file.c @@ -116,6 +116,7 @@ static int nilfs_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf)  	if (unlikely(ret))  		goto out; +	file_update_time(vma->vm_file);  	ret = __block_page_mkwrite(vma, vmf, nilfs_get_block);  	if (ret) {  		nilfs_transaction_abort(inode->i_sb); @@ -134,13 +135,13 @@ static int nilfs_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf)  static const struct vm_operations_struct nilfs_file_vm_ops = {  	.fault		= filemap_fault,  	.page_mkwrite	= nilfs_page_mkwrite, +	.remap_pages	= generic_file_remap_pages,  };  static int nilfs_file_mmap(struct file *file, struct vm_area_struct *vma)  {  	file_accessed(file);  	vma->vm_ops = &nilfs_file_vm_ops; -	vma->vm_flags |= VM_CAN_NONLINEAR;  	return 0;  } @@ -166,7 +167,6 @@ const struct file_operations nilfs_file_operations = {  };  const struct inode_operations nilfs_file_inode_operations = { -	.truncate	= nilfs_truncate,  	.setattr	= nilfs_setattr,  	.permission     = nilfs_permission,  	.fiemap		= nilfs_fiemap,  |