projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2683446
)
f2fs: fix to cover lock_op for update_inode_page
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Sun, 16 Aug 2015 04:51:05 +0000
(21:51 -0700)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Thu, 20 Aug 2015 16:00:11 +0000
(09:00 -0700)
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>
fs/f2fs/file.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/file.c
b/fs/f2fs/file.c
index 016ed3ba2ca46fbfffc940b7b45b1859afa0cc63..7faafb5043e0fe0e360eda6c7325de7036dc0776 100644
(file)
--- 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;
}