loop: Update mtime when writing using aops

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, April 9, 2010 - 11:59 am

Gitweb:     http://git.kernel.org/linus/02246c41171097ceab3246f6dc251ac89de6004b
Commit:     02246c41171097ceab3246f6dc251ac89de6004b
Parent:     a74b2adae06265b8cfa335d7d40d4a5abd11e977
Author:     Nikanth Karthikesan <knikanth@suse.de>
AuthorDate: Thu Apr 8 21:39:31 2010 +0200
Committer:  Jens Axboe <jens.axboe@oracle.com>
CommitDate: Thu Apr 8 21:39:31 2010 +0200

    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>
---
 drivers/block/loop.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index bd112c8..1c21a3f 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;
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
loop: Update mtime when writing using aops, Linux Kernel Mailing ..., (Fri Apr 9, 11:59 am)