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-2576 osc: various fix in osc_enter_cache()
[fs/lustre-release.git]
/
lustre
/
osc
/
lproc_osc.c
diff --git
a/lustre/osc/lproc_osc.c
b/lustre/osc/lproc_osc.c
index
cf472d1
..
29fbebc
100644
(file)
--- a/
lustre/osc/lproc_osc.c
+++ b/
lustre/osc/lproc_osc.c
@@
-147,7
+147,7
@@
static int osc_wr_max_dirty_mb(struct file *file, const char *buffer,
if (rc)
return rc;
- if (pages_number < 0 ||
+ if (pages_number <
=
0 ||
pages_number > OSC_MAX_DIRTY_MB_MAX << (20 - CFS_PAGE_SHIFT) ||
pages_number > cfs_num_physpages / 4) /* 1/4 of RAM */
return -ERANGE;