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:
04431c4
)
f2fs: fix to call WRITE_FLUSH at the end of fsync
author
Jaegeuk Kim
<
[email protected]
>
Sat, 16 Mar 2013 02:13:04 +0000
(11:13 +0900)
committer
Jaegeuk Kim
<
[email protected]
>
Wed, 20 Mar 2013 09:30:14 +0000
(18:30 +0900)
The fsync call should be ended after flushing the in-device caches.
Reviewed-by: Namjae Jeon <
[email protected]
>
Signed-off-by: Jaegeuk Kim <
[email protected]
>
fs/f2fs/file.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/file.c
b/fs/f2fs/file.c
index 269645e2351912d244bcb17fe6fc1c75b400f7e1..ff018a42e435438e3f34010eb7022e0b27b38749 100644
(file)
--- a/
fs/f2fs/file.c
+++ b/
fs/f2fs/file.c
@@
-13,6
+13,7
@@
#include <linux/stat.h>
#include <linux/buffer_head.h>
#include <linux/writeback.h>
+#include <linux/blkdev.h>
#include <linux/falloc.h>
#include <linux/types.h>
#include <linux/compat.h>
@@
-178,6
+179,7
@@
int f2fs_sync_file(struct file *file, loff_t start, loff_t end, int datasync)
}
filemap_fdatawait_range(sbi->node_inode->i_mapping,
0, LONG_MAX);
+ ret = blkdev_issue_flush(inode->i_sb->s_bdev, GFP_KERNEL, NULL);
}
out:
mutex_unlock(&inode->i_mutex);