summaryrefslogtreecommitdiffstats
path: root/fs/ceph/mds_client.c
diff options
context:
space:
mode:
authorYan, Zheng2016-04-28 09:17:40 +0200
committerIlya Dryomov2016-05-26 01:15:35 +0200
commit8974eebd38737c9534d81c4131c5fdb1fe24d3e9 (patch)
tree97e2d6f1fa805e89b18f833818422a3beac11c25 /fs/ceph/mds_client.c
parentceph: define 'end/complete' in readdir reply as bit flags (diff)
downloadkernel-qcow2-linux-8974eebd38737c9534d81c4131c5fdb1fe24d3e9.tar.gz
kernel-qcow2-linux-8974eebd38737c9534d81c4131c5fdb1fe24d3e9.tar.xz
kernel-qcow2-linux-8974eebd38737c9534d81c4131c5fdb1fe24d3e9.zip
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>
Diffstat (limited to 'fs/ceph/mds_client.c')
-rw-r--r--fs/ceph/mds_client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index 1c2befcd24fb..48def22fc7b9 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -214,6 +214,8 @@ static int parse_reply_info_dir(void **p, void *end,
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--;
}