ceph: remove unnecessary checks in __dcache_readdir

we never add snapdir and the hidden .ceph dir into readdir cache

Signed-off-by: Yan, Zheng <zyan@redhat.com>
This commit is contained in:
Yan, Zheng 2016-04-29 15:58:32 +08:00 committed by Ilya Dryomov
parent c530cd24c2
commit 1cd42a4291
1 changed files with 0 additions and 2 deletions

View File

@ -228,8 +228,6 @@ static int __dcache_readdir(struct file *file, struct dir_context *ctx,
spin_lock(&dentry->d_lock);
if (di->lease_shared_gen == shared_gen &&
d_really_is_positive(dentry) &&
ceph_snap(d_inode(dentry)) != CEPH_SNAPDIR &&
ceph_ino(d_inode(dentry)) != CEPH_INO_CEPH &&
fpos_cmp(ctx->pos, di->offset) <= 0) {
emit_dentry = true;
}