summaryrefslogtreecommitdiffstats
path: root/drivers/block/loop.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/loop.c')
-rw-r--r--drivers/block/loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index 3209aa46b..668cb5096 100644
--- a/drivers/block/loop.c
+++ b/drivers/block/loop.c
@@ -190,7 +190,7 @@ static int lo_send(struct loop_device *lo, char *data, int len, loff_t pos,
page = grab_cache_page(mapping, index);
if (!page)
goto fail;
- if (aops->prepare_write(page, offset, offset+size))
+ if (aops->prepare_write(file, page, offset, offset+size))
goto unlock;
kaddr = (char*)page_address(page);
if ((lo->transfer)(lo, WRITE, kaddr+offset, data, size, IV))