aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/loop.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/loop.c')
-rw-r--r--drivers/block/loop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index a90e83c9be96..6120922f459f 100644
--- a/drivers/block/loop.c
+++ b/drivers/block/loop.c
@@ -485,7 +485,7 @@ static int do_bio_filebacked(struct loop_device *lo, struct bio *bio)
485 goto out; 485 goto out;
486 } 486 }
487 487
488 ret = vfs_fsync(file, file->f_path.dentry, 0); 488 ret = vfs_fsync(file, 0);
489 if (unlikely(ret)) { 489 if (unlikely(ret)) {
490 ret = -EIO; 490 ret = -EIO;
491 goto out; 491 goto out;
@@ -495,7 +495,7 @@ static int do_bio_filebacked(struct loop_device *lo, struct bio *bio)
495 ret = lo_send(lo, bio, pos); 495 ret = lo_send(lo, bio, pos);
496 496
497 if (barrier && !ret) { 497 if (barrier && !ret) {
498 ret = vfs_fsync(file, file->f_path.dentry, 0); 498 ret = vfs_fsync(file, 0);
499 if (unlikely(ret)) 499 if (unlikely(ret))
500 ret = -EIO; 500 ret = -EIO;
501 } 501 }