projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfe2234
)
fix block device fallout from ->fsync() changes
author
Rafael J. Wysocki
<rjw@sisk.pl>
Tue, 2 Aug 2011 00:17:48 +0000
(
02:17
+0200)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 2 Aug 2011 01:33:47 +0000
(21:33 -0400)
blkdev_fsync() needs to write pages in pagecache...
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/block_dev.c
patch
|
blob
|
history
diff --git
a/fs/block_dev.c
b/fs/block_dev.c
index f286805532882ab33d5431682b64ce5e1f71ec6f..ff77262e887cb66819f31d781e679eccb2d1975a 100644
(file)
--- a/
fs/block_dev.c
+++ b/
fs/block_dev.c
@@
-387,6
+387,10
@@
int blkdev_fsync(struct file *filp, loff_t start, loff_t end, int datasync)
struct inode *bd_inode = filp->f_mapping->host;
struct block_device *bdev = I_BDEV(bd_inode);
int error;
+
+ error = filemap_write_and_wait_range(filp->f_mapping, start, end);
+ if (error)
+ return error;
/*
* There is no need to serialise calls to blkdev_issue_flush with