mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 16:15:11 +00:00
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>
This commit is contained in:
parent
0081bd83c0
commit
6da5246dd4
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ static int __dcache_readdir(struct file *file, struct dir_context *ctx,
|
||||||
|
|
||||||
/* start at beginning? */
|
/* start at beginning? */
|
||||||
if (ctx->pos == 2 || last == NULL ||
|
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))
|
if (list_empty(&parent->d_subdirs))
|
||||||
goto out_unlock;
|
goto out_unlock;
|
||||||
p = parent->d_subdirs.prev;
|
p = parent->d_subdirs.prev;
|
||||||
|
|
Loading…
Reference in a new issue