提交 09b8a7d2 编写于 作者: S Sage Weil

ceph: exclude snapdir from readdir results

It was hidden from sync readdir, but not the cached dcache version.
Signed-off-by: NSage Weil <sage@newdream.net>
上级 cdac8303
......@@ -131,6 +131,7 @@ static int __dcache_readdir(struct file *filp,
goto out_unlock;
}
if (!d_unhashed(dentry) && dentry->d_inode &&
ceph_snap(dentry->d_inode) != CEPH_SNAPDIR &&
filp->f_pos <= di->offset)
break;
dout(" skipping %p %.*s at %llu (%llu)%s%s\n", dentry,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册