aboutsummaryrefslogtreecommitdiff
path: root/drivers/block/loop.c
diff options
context:
space:
mode:
authorNikanth Karthikesan <knikanth@suse.de>2010-04-08 21:39:31 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2010-08-13 13:20:23 -0700
commitbde7aceab9887be15a5df51d3369ccc95cc2f241 (patch)
tree65d4aac5df0f4d79d5235e2cf94d0a61fa01612f /drivers/block/loop.c
parent1fe6910cb27ef3512f96d4ff81c491eb322bd166 (diff)
loop: Update mtime when writing using aops
commit 02246c41171097ceab3246f6dc251ac89de6004b upstream. Update mtime when writing to backing filesystem using the address space operations write_begin and write_end. Signed-off-by: Nikanth Karthikesan <knikanth@suse.de> Signed-off-by: Jens Axboe <jens.axboe@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/block/loop.c')
-rw-r--r--drivers/block/loop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index bd112c8c7bc..1c21a3f2386 100644
--- a/drivers/block/loop.c
+++ b/drivers/block/loop.c
@@ -238,6 +238,8 @@ static int do_lo_send_aops(struct loop_device *lo, struct bio_vec *bvec,
if (ret)
goto fail;
+ file_update_time(file);
+
transfer_result = lo_do_transfer(lo, WRITE, page, offset,
bvec->bv_page, bv_offs, size, IV);
copied = size;