Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2286c020 authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

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: default avatarChao Yu <chao2.yu@samsung.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 26834466
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
	}