ceph: record 'offset' for each entry of readdir result

This is preparation for using hash value as dentry 'offset'

Signed-off-by: Yan, Zheng <zyan@redhat.com>
This commit is contained in:
Yan, Zheng
2016-04-28 15:17:40 +08:00
committed by Ilya Dryomov
parent 956d39d631
commit 8974eebd38
5 changed files with 59 additions and 29 deletions

View File

@@ -1523,6 +1523,7 @@ retry_lookup:
di = dn->d_fsdata;
di->offset = ceph_make_fpos(frag, i + req->r_readdir_offset);
rde->offset = di->offset;
update_dentry_lease(dn, rde->lease, req->r_session,
req->r_request_started);