Commit 09b8b3c8 authored by Jaegeuk Kim's avatar Jaegeuk Kim

f2fs: call flush_dcache_page when the page was updated

Whenever f2fs updates mapped pages, it needs to call flush_dcache_page.
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 857dc4e0
...@@ -106,6 +106,7 @@ int f2fs_convert_inline_page(struct dnode_of_data *dn, struct page *page) ...@@ -106,6 +106,7 @@ int f2fs_convert_inline_page(struct dnode_of_data *dn, struct page *page)
src_addr = inline_data_addr(dn->inode_page); src_addr = inline_data_addr(dn->inode_page);
dst_addr = kmap_atomic(page); dst_addr = kmap_atomic(page);
memcpy(dst_addr, src_addr, MAX_INLINE_DATA); memcpy(dst_addr, src_addr, MAX_INLINE_DATA);
flush_dcache_page(page);
kunmap_atomic(dst_addr); kunmap_atomic(dst_addr);
SetPageUptodate(page); SetPageUptodate(page);
no_update: no_update:
......
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