[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201307021345131042678@gmail.com>
Date: Tue, 2 Jul 2013 13:45:17 +0800
From: majianpeng <majianpeng@...il.com>
To: sage <sage@...tank.com>
Cc: ceph-devel <ceph-devel@...r.kernel.org>,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: [PATCH 3/3] ceph: For ceph_sync_read, update the atime of file.
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@...il.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
Powered by blists - more mailing lists