Commit 09b8a7d2 authored by Sage Weil's avatar Sage Weil

ceph: exclude snapdir from readdir results

It was hidden from sync readdir, but not the cached dcache version.
Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment