aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2015-08-15 21:51:05 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2015-08-20 09:00:11 -0700
commit2286c0205d1478d4bece6e733cbaf15535fba09d (patch)
tree61d3a8a15b8c09fe1d9942a8b6aff3197744fba4 /fs
parentf2fs: reuse nids more aggressively (diff)
downloadlinux-dev-2286c0205d1478d4bece6e733cbaf15535fba09d.tar.xz
linux-dev-2286c0205d1478d4bece6e733cbaf15535fba09d.zip
f2fs: fix to cover lock_op for update_inode_page
Previously, update_inode_page is not called under f2fs_lock_op. Instead we should call with f2fs_write_inode. Reviewed-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/f2fs/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index 016ed3ba2ca4..7faafb5043e0 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -206,8 +206,8 @@ int f2fs_sync_file(struct file *file, loff_t start, loff_t end, int datasync)
}
/* if the inode is dirty, let's recover all the time */
- if (!datasync && is_inode_flag_set(fi, FI_DIRTY_INODE)) {
- update_inode_page(inode);
+ if (!datasync) {
+ f2fs_write_inode(inode, NULL);
goto go_write;
}