aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorNikanth Karthikesan <knikanth@suse.de>2010-04-08 15:39:31 -0400
committerJens Axboe <jens.axboe@oracle.com>2010-04-08 15:39:31 -0400
commit02246c41171097ceab3246f6dc251ac89de6004b (patch)
treef50a2cc750b730ebf71f30e7badc723d25876155 /drivers
parenta74b2adae06265b8cfa335d7d40d4a5abd11e977 (diff)
loop: Update mtime when writing using aops
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>
Diffstat (limited to 'drivers')
-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 bd112c8c7bcd..1c21a3f23868 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,
238 if (ret) 238 if (ret)
239 goto fail; 239 goto fail;
240 240
241 file_update_time(file);
242
241 transfer_result = lo_do_transfer(lo, WRITE, page, offset, 243 transfer_result = lo_do_transfer(lo, WRITE, page, offset,
242 bvec->bv_page, bv_offs, size, IV); 244 bvec->bv_page, bv_offs, size, IV);
243 copied = size; 245 copied = size;