mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
staging: lustre: osc: fix max_dirty_mb tunable setting limit
The OSC tunable max_dirty_mb must be set to a value strictly lower than 2048, as it is assumed by OSS in ofd_grant_alloc() routine. Signed-off-by: Gregoire Pichon <gregoire.pichon@bull.net> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7218 Reviewed-on: http://review.whamcloud.com/16652 Reviewed-by: Andreas Dilger <andreas.dilger@intel.com> Reviewed-by: Bobi Jam <bobijam@hotmail.com> Signed-off-by: James Simmons <jsimmons@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b8cb86fd95
commit
c7298013ce
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ static ssize_t max_dirty_mb_store(struct kobject *kobj,
|
|||
pages_number *= 1 << (20 - PAGE_SHIFT); /* MB -> pages */
|
||||
|
||||
if (pages_number <= 0 ||
|
||||
pages_number > OSC_MAX_DIRTY_MB_MAX << (20 - PAGE_SHIFT) ||
|
||||
pages_number >= OSC_MAX_DIRTY_MB_MAX << (20 - PAGE_SHIFT) ||
|
||||
pages_number > totalram_pages / 4) /* 1/4 of RAM */
|
||||
return -ERANGE;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue