Commit 692bb55d authored by Jaegeuk Kim's avatar Jaegeuk Kim

f2fs: add remap_pages as generic_file_remap_pages

This was added for all the file systems before.

See the following commit.

commit id: 0b173bc4

[PATCH] mm: kill vma flag VM_CAN_NONLINEAR

This patch moves actual ptes filling for non-linear file mappings
into special vma operation: ->remap_pages().

File system must implement this method to get non-linear mappings support,
if it uses filemap_fault() then generic_file_remap_pages() can be used.

Now device drivers can implement this method and obtain nonlinear vma support."
Signed-off-by: default avatarJaegeuk Kim <jaegeuk.kim@samsung.com>
parent 6e6093a8
...@@ -98,6 +98,7 @@ static int f2fs_vm_page_mkwrite(struct vm_area_struct *vma, ...@@ -98,6 +98,7 @@ static int f2fs_vm_page_mkwrite(struct vm_area_struct *vma,
static const struct vm_operations_struct f2fs_file_vm_ops = { static const struct vm_operations_struct f2fs_file_vm_ops = {
.fault = filemap_fault, .fault = filemap_fault,
.page_mkwrite = f2fs_vm_page_mkwrite, .page_mkwrite = f2fs_vm_page_mkwrite,
.remap_pages = generic_file_remap_pages,
}; };
static int need_to_sync_dir(struct f2fs_sb_info *sbi, struct inode *inode) static int need_to_sync_dir(struct f2fs_sb_info *sbi, struct inode *inode)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment