Commit 2a4b8e9f authored by Jaegeuk Kim's avatar Jaegeuk Kim

f2fs: remove redundant calls

This patch removes redundant calls.
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 12719ae1
...@@ -267,8 +267,6 @@ int f2fs_sync_file(struct file *file, loff_t start, loff_t end, int datasync) ...@@ -267,8 +267,6 @@ int f2fs_sync_file(struct file *file, loff_t start, loff_t end, int datasync)
if (need_inode_block_update(sbi, ino)) { if (need_inode_block_update(sbi, ino)) {
mark_inode_dirty_sync(inode); mark_inode_dirty_sync(inode);
f2fs_write_inode(inode, NULL); f2fs_write_inode(inode, NULL);
f2fs_balance_fs(sbi);
goto sync_nodes; goto sync_nodes;
} }
...@@ -484,7 +482,6 @@ int truncate_data_blocks_range(struct dnode_of_data *dn, int count) ...@@ -484,7 +482,6 @@ int truncate_data_blocks_range(struct dnode_of_data *dn, int count)
F2FS_I(dn->inode)) + ofs; F2FS_I(dn->inode)) + ofs;
f2fs_update_extent_cache_range(dn, fofs, 0, len); f2fs_update_extent_cache_range(dn, fofs, 0, len);
dec_valid_block_count(sbi, dn->inode, nr_free); dec_valid_block_count(sbi, dn->inode, nr_free);
set_page_dirty(dn->node_page);
sync_inode_page(dn); sync_inode_page(dn);
} }
dn->ofs_in_node = ofs; dn->ofs_in_node = ofs;
......
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