diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c index 25de6b27bdf40e0181f30d1f62dd31ae4da4b384..d066aad608add367f0669993228e40d016282a5e 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c @@ -889,7 +889,7 @@ pnfs_find_lseg(struct pnfs_layout_hdr *lo, ret = get_lseg(lseg); break; } - if (cmp_layout(range, &lseg->pls_range) > 0) + if (lseg->pls_range.offset > range->offset) break; }