Skip to contentSkip to conversation

ceph: for sync_read, call file_accessed to update atime.

PATCH New majianpeng 1 participant 1 message Jul 3, 2013 Ceph client

lore
Share & tools
lore

majianpeng

author
#0 lore raw

PATCH 2/2 ceph: for sync_read, call file_accessed to update atime.

For ceph_sync_read,it don't call file_accessed to update atime.But the buffer_read do it .So add it.

---
 fs/ceph/file.c | 1 +
 1 file changed, 1 insertion(+)
fs/ceph/file.c +1 -0
index fa74e6f..b0e6f0b 100644
@@ -442,6 +442,7 @@ 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