projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0081bd8
)
ceph: use fpos_cmp() to compare dentry positions
author
Yan, Zheng
<zheng.z.yan@intel.com>
Wed, 9 Apr 2014 01:35:19 +0000
(09:35 +0800)
committer
Sage Weil
<sage@inktank.com>
Mon, 28 Apr 2014 19:53:52 +0000
(12:53 -0700)
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Sage Weil <sage@inktank.com>
fs/ceph/dir.c
patch
|
blob
|
history
diff --git
a/fs/ceph/dir.c
b/fs/ceph/dir.c
index 8c7f90b96913c018dc9045fe6f0d13595c1623e8..fb4f7a203eda76dcb8736407654e0ea25381406a 100644
(file)
--- a/
fs/ceph/dir.c
+++ b/
fs/ceph/dir.c
@@
-141,7
+141,7
@@
static int __dcache_readdir(struct file *file, struct dir_context *ctx,
/* start at beginning? */
if (ctx->pos == 2 || last == NULL ||
-
ctx->pos < ceph_dentry(last)->offset
) {
+
fpos_cmp(ctx->pos, ceph_dentry(last)->offset) < 0
) {
if (list_empty(&parent->d_subdirs))
goto out_unlock;
p = parent->d_subdirs.prev;