summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/data.c
diff options
context:
space:
mode:
authorJaegeuk Kim2013-03-20 06:58:38 +0100
committerJaegeuk Kim2013-03-27 01:16:16 +0100
commit0ff153a2f1fa7ef31d6d9bc9ce6c3815dede55e6 (patch)
treef9bf94683b0c9f19ff3606e94eceae5e6b60b7d9 /fs/f2fs/data.c
parentf2fs: fix the recovery flow to handle errors correctly (diff)
downloadkernel-qcow2-linux-0ff153a2f1fa7ef31d6d9bc9ce6c3815dede55e6.tar.gz
kernel-qcow2-linux-0ff153a2f1fa7ef31d6d9bc9ce6c3815dede55e6.tar.xz
kernel-qcow2-linux-0ff153a2f1fa7ef31d6d9bc9ce6c3815dede55e6.zip
f2fs: do not skip writing file meta during fsync
This patch removes data_version check flow during the fsync call. The original purpose for the use of data_version was to avoid writng inode pages redundantly by the fsync calls repeatedly. However, when user can modify file meta and then call fsync, we should not skip fsync procedure. So, let's remove this condition check and hope that user triggers in right manner. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r--fs/f2fs/data.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index ea8be6fc38f1..47a2d7c87ea9 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -435,7 +435,6 @@ static int f2fs_read_data_pages(struct file *file,
int do_write_data_page(struct page *page)
{
struct inode *inode = page->mapping->host;
- struct f2fs_sb_info *sbi = F2FS_SB(inode->i_sb);
block_t old_blk_addr, new_blk_addr;
struct dnode_of_data dn;
int err = 0;
@@ -465,8 +464,6 @@ int do_write_data_page(struct page *page)
write_data_page(inode, page, &dn,
old_blk_addr, &new_blk_addr);
update_extent_cache(new_blk_addr, &dn);
- F2FS_I(inode)->data_version =
- le64_to_cpu(F2FS_CKPT(sbi)->checkpoint_ver);
}
out_writepage:
f2fs_put_dnode(&dn);