You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
blkdev: generalize flags for blkdev_issue_fn functions
The patch just convert all blkdev_issue_xxx function to common set of flags. Wait/allocation semantics preserved. Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
committed by
Jens Axboe
parent
6b4517a791
commit
fbd9b09a17
+2
-1
@@ -413,7 +413,8 @@ int blkdev_fsync(struct file *filp, struct dentry *dentry, int datasync)
|
||||
if (error)
|
||||
return error;
|
||||
|
||||
error = blkdev_issue_flush(bdev, NULL);
|
||||
error = blkdev_issue_flush(bdev, GFP_KERNEL, NULL,
|
||||
(BLKDEV_IFL_WAIT));
|
||||
if (error == -EOPNOTSUPP)
|
||||
error = 0;
|
||||
return error;
|
||||
|
||||
Reference in New Issue
Block a user