ceph: for sync_read, call file_accessed to update atime.
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.
Signed-off-by Jianpeng Ma <[email protected]>
--- fs/ceph/file.c | 1 + 1 file changed, 1 insertion(+)
fs/ceph/file.c +1 -0
@@ -442,6 +442,7 @@ done:ceph_put_page_vector (pages, num_pages, true); elseceph_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