|
@@ -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 inode *bd_inode = filp->f_mapping->host;
|
|
struct block_device *bdev = I_BDEV(bd_inode);
|
|
struct block_device *bdev = I_BDEV(bd_inode);
|
|
int error;
|
|
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
|
|
* There is no need to serialise calls to blkdev_issue_flush with
|