X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fofd%2Fofd_dev.c;h=c3d578ebebd99eda15f534ccf6d9dfa2ec40889c;hp=3f0e4264bf540c50010b40200b6ed9f4ed64999d;hb=829a24f644ceb453124b72c94584404d2e97f4f9;hpb=b2c88463370dbed1539e6d7a232f8096ac735c30 diff --git a/lustre/ofd/ofd_dev.c b/lustre/ofd/ofd_dev.c index 3f0e426..c3d578e 100644 --- a/lustre/ofd/ofd_dev.c +++ b/lustre/ofd/ofd_dev.c @@ -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 */