Whamcloud - gitweb
LU-8849 ofd: Client hanges on ladvise with large start values
[fs/lustre-release.git] / lustre / ofd / ofd_dev.c
index 3f0e426..c3d578e 100644 (file)
@@ -2138,7 +2138,7 @@ static int ofd_ladvise_prefetch(const struct lu_env *env,
        if (end > info->fti_attr.la_size)
                end = info->fti_attr.la_size;
 
-       if (end == 0)
+       if (end <= start)
                GOTO(out_unlock, rc);
 
        /* We need page aligned offset and length */