Skip to contentSkip to conversation

ceph: For ceph_sync_read, update the atime of file.

PATCH In review majianpeng 1 participant 1 message Jul 2, 2013 Ceph client

lore
Share & tools
lore

majianpeng

author
#0 lore raw

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.

---
 fs/ceph/file.c | 3 +++
 1 file changed, 3 insertions(+)
fs/ceph/file.c +3 -0
index 656e169..87df15a 100644
@@ -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;
 }
Signature · 1 line
1.8.1.2