commit | 8974eebd38737c9534d81c4131c5fdb1fe24d3e9 | [log] [tgz] |
---|---|---|
author | Yan, Zheng <zyan@redhat.com> | Thu Apr 28 15:17:40 2016 +0800 |
committer | Ilya Dryomov <idryomov@gmail.com> | Thu May 26 01:15:35 2016 +0200 |
tree | 97e2d6f1fa805e89b18f833818422a3beac11c25 | |
parent | 956d39d631dbcf7b57854873a24e309047f2a7f5 [diff] [blame] |
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>
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index 1c2befc..48def22 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c
@@ -214,6 +214,8 @@ err = parse_reply_info_in(p, end, &rde->inode, features); if (err < 0) goto out_bad; + /* ceph_readdir_prepopulate() will update it */ + rde->offset = 0; i++; num--; }