mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
ceph: exclude snapdir from readdir results
It was hidden from sync readdir, but not the cached dcache version. Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
cdac830313
commit
09b8a7d2af
1 changed files with 1 additions and 0 deletions
|
@ -131,6 +131,7 @@ static int __dcache_readdir(struct file *filp,
|
||||||
goto out_unlock;
|
goto out_unlock;
|
||||||
}
|
}
|
||||||
if (!d_unhashed(dentry) && dentry->d_inode &&
|
if (!d_unhashed(dentry) && dentry->d_inode &&
|
||||||
|
ceph_snap(dentry->d_inode) != CEPH_SNAPDIR &&
|
||||||
filp->f_pos <= di->offset)
|
filp->f_pos <= di->offset)
|
||||||
break;
|
break;
|
||||||
dout(" skipping %p %.*s at %llu (%llu)%s%s\n", dentry,
|
dout(" skipping %p %.*s at %llu (%llu)%s%s\n", dentry,
|
||||||
|
|
Loading…
Reference in a new issue