mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
f2fs: remove redundant calls
This patch removes redundant calls. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
12719ae14e
commit
2a4b8e9fab
1 changed files with 0 additions and 3 deletions
|
@ -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)) {
|
||||
mark_inode_dirty_sync(inode);
|
||||
f2fs_write_inode(inode, NULL);
|
||||
|
||||
f2fs_balance_fs(sbi);
|
||||
goto sync_nodes;
|
||||
}
|
||||
|
||||
|
@ -484,7 +482,6 @@ int truncate_data_blocks_range(struct dnode_of_data *dn, int count)
|
|||
F2FS_I(dn->inode)) + ofs;
|
||||
f2fs_update_extent_cache_range(dn, fofs, 0, len);
|
||||
dec_valid_block_count(sbi, dn->inode, nr_free);
|
||||
set_page_dirty(dn->node_page);
|
||||
sync_inode_page(dn);
|
||||
}
|
||||
dn->ofs_in_node = ofs;
|
||||
|
|
Loading…
Reference in a new issue