public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] loop: Update mtime when writing using aops
@ 2010-04-08 10:21 Nikanth Karthikesan
  2010-04-08 12:45 ` Jens Axboe
  0 siblings, 1 reply; 5+ messages in thread
From: Nikanth Karthikesan @ 2010-04-08 10:21 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-kernel

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>

---

diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index cb69929..8546d12 100644
--- a/drivers/block/loop.c
+++ b/drivers/block/loop.c
@@ -237,6 +237,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;

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-04-09  5:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-08 10:21 [PATCH] loop: Update mtime when writing using aops Nikanth Karthikesan
2010-04-08 12:45 ` Jens Axboe
2010-04-08 14:15   ` Tvrtko Ursulin
2010-04-08 19:38     ` Jens Axboe
2010-04-09  5:22       ` Nikanth Karthikesan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox