提交 f1f2765f 编写于 作者: S Sage Weil

ceph: set next_offset on readdir finish

Set next_offset to 2 (always 2!), not 0, on readdir finish.
Signed-off-by: NSage Weil <sage@newdream.net>
上级 bddfa3cc
......@@ -338,7 +338,7 @@ static int ceph_readdir(struct file *filp, void *dirent, filldir_t filldir)
if (req->r_reply_info.dir_end) {
kfree(fi->last_name);
fi->last_name = NULL;
fi->next_offset = 0;
fi->next_offset = 2;
} else {
rinfo = &req->r_reply_info;
err = note_last_dentry(fi,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册