All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3/3] ceph: For ceph_sync_read, update the atime of file.
@ 2013-07-02  5:45 ` majianpeng
  0 siblings, 0 replies; 2+ messages in thread
From: majianpeng @ 2013-07-02  5:45 UTC (permalink / raw)
  To: sage; +Cc: ceph-devel, linux-kernel

For buffer read, the func generic_file_aio_read will update atime of
file.But the ceph_sync_read don't do it.So add this.

Signed-off-by: Jianpeng Ma <majianpeng@gmail.com>
---
 fs/ceph/file.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/fs/ceph/file.c b/fs/ceph/file.c
index 656e169..87df15a 100644
--- a/fs/ceph/file.c
+++ b/fs/ceph/file.c
@@ -442,6 +442,9 @@ done:
 		ceph_put_page_vector(pages, num_pages, true);
 	else
 		ceph_release_page_vector(pages, num_pages);
+
+	file_accessed(file);
+
 	dout("sync_read result %d\n", ret);
 	return ret;
 }
-- 
1.8.1.2

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

end of thread, other threads:[~2013-07-02  5:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-02  5:45 [PATCH 3/3] ceph: For ceph_sync_read, update the atime of file majianpeng
2013-07-02  5:45 ` majianpeng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.