summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2016-04-29 15:58:32 +0800
committerIlya Dryomov <idryomov@gmail.com>2016-05-26 01:15:34 +0200
commit1cd42a429174689c0df1c37b642654a1ab4d1506 (patch)
tree871470eeada092d62fb9d8d0b5ecdeb51adf3470
parentc530cd24c23818af8da35fe556f9a7754211e50a (diff)
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>
-rw-r--r--fs/ceph/dir.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c
index cdea450c5902..734508be1526 100644
--- a/fs/ceph/dir.c
+++ b/fs/ceph/dir.c
@@ -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;
}