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:
@@ -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--;
|
||||
}
|
||||
|
Reference in New Issue
Block a user