Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-8849 ofd: Client hanges on ladvise with large start values
[fs/lustre-release.git]
/
lustre
/
ofd
/
ofd_dev.c
diff --git
a/lustre/ofd/ofd_dev.c
b/lustre/ofd/ofd_dev.c
index
3f0e426
..
c3d578e
100644
(file)
--- 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 > 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 */
GOTO(out_unlock, rc);
/* We need page aligned offset and length */