diff options
author | 2014-04-09 09:35:19 +0800 | |
---|---|---|
committer | 2014-04-28 12:53:52 -0700 | |
commit | 6da5246dd4b077ab229481ca342802f7fdcdab59 (patch) | |
tree | c00a07637ed0823cc3e6d20d89048da320088cd8 /fs/ceph | |
parent | ceph: check directory's completeness before emitting directory entry (diff) | |
download | linux-6da5246dd4b077ab229481ca342802f7fdcdab59.tar.gz linux-6da5246dd4b077ab229481ca342802f7fdcdab59.tar.bz2 linux-6da5246dd4b077ab229481ca342802f7fdcdab59.zip |
ceph: use fpos_cmp() to compare dentry positions
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'fs/ceph')
-rw-r--r-- | fs/ceph/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c index 8c7f90b96913..fb4f7a203eda 100644 --- 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; |