aboutsummaryrefslogtreecommitdiffstats
path: root/fs/block_dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/block_dev.c')
-rw-r--r--fs/block_dev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c
index ea8385ea58ab..dd769304382e 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -413,7 +413,8 @@ int blkdev_fsync(struct file *filp, struct dentry *dentry, int datasync)
413 if (error) 413 if (error)
414 return error; 414 return error;
415 415
416 error = blkdev_issue_flush(bdev, NULL); 416 error = blkdev_issue_flush(bdev, GFP_KERNEL, NULL,
417 (BLKDEV_IFL_WAIT));
417 if (error == -EOPNOTSUPP) 418 if (error == -EOPNOTSUPP)
418 error = 0; 419 error = 0;
419 return error; 420 return error;