projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
f2fs: avoid freqeunt write_inode calls
[linux-block.git]
/
fs
/
f2fs
/
file.c
diff --git
a/fs/f2fs/file.c
b/fs/f2fs/file.c
index 2f649b8485219fa3470d7e1632d36092baf7e31a..fda226ff1849c324507231ef37551ef4a2dcece4 100644
(file)
--- a/
fs/f2fs/file.c
+++ b/
fs/f2fs/file.c
@@
-147,6
+147,7
@@
int f2fs_sync_file(struct file *file, loff_t start, loff_t end, int datasync)
} else {
/* if there is no written node page, write its inode page */
while (!sync_node_pages(sbi, inode->i_ino, &wbc)) {
+ mark_inode_dirty_sync(inode);
ret = f2fs_write_inode(inode, NULL);
if (ret)
goto out;