projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c530cd2
)
ceph: remove unnecessary checks in __dcache_readdir
author
Yan, Zheng
<zyan@redhat.com>
Fri, 29 Apr 2016 07:58:32 +0000
(15:58 +0800)
committer
Ilya Dryomov
<idryomov@gmail.com>
Wed, 25 May 2016 23:15:34 +0000
(
01:15
+0200)
we never add snapdir and the hidden .ceph dir into readdir cache
Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/dir.c
patch
|
blob
|
history
diff --git
a/fs/ceph/dir.c
b/fs/ceph/dir.c
index cdea450c59026bb9fb209f3218ce8503148e8ad1..734508be1526bbe4ccf9c8294c2be108d4880872 100644
(file)
--- 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;
}