Commit 1cd42a42 authored by Yan, Zheng's avatar Yan, Zheng Committed by Ilya Dryomov

ceph: remove unnecessary checks in __dcache_readdir

we never add snapdir and the hidden .ceph dir into readdir cache
Signed-off-by: default avatarYan, Zheng <zyan@redhat.com>
parent c530cd24
...@@ -228,8 +228,6 @@ static int __dcache_readdir(struct file *file, struct dir_context *ctx, ...@@ -228,8 +228,6 @@ static int __dcache_readdir(struct file *file, struct dir_context *ctx,
spin_lock(&dentry->d_lock); spin_lock(&dentry->d_lock);
if (di->lease_shared_gen == shared_gen && if (di->lease_shared_gen == shared_gen &&
d_really_is_positive(dentry) && 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) { fpos_cmp(ctx->pos, di->offset) <= 0) {
emit_dentry = true; emit_dentry = true;
} }
......
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