From: Gregoire Pichon Date: Mon, 28 Sep 2015 11:30:29 +0000 (+0200) Subject: LU-7218 osc: fix max_dirty_mb tunable setting limit X-Git-Tag: 2.7.61~4 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=a459beefbbc82aadaae08debef6467ccef626aea;p=fs%2Flustre-release.git LU-7218 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 Change-Id: I66a0927c69749cdbb9cd48459af67a57c3e25af0 Reviewed-on: http://review.whamcloud.com/16652 Tested-by: Jenkins Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: Bobi Jam --- diff --git a/lustre/osc/lproc_osc.c b/lustre/osc/lproc_osc.c index dc372fd..5fe64aa 100644 --- a/lustre/osc/lproc_osc.c +++ b/lustre/osc/lproc_osc.c @@ -161,7 +161,7 @@ static ssize_t osc_max_dirty_mb_seq_write(struct file *file, return rc; if (pages_number <= 0 || - pages_number > OSC_MAX_DIRTY_MB_MAX << (20 - PAGE_CACHE_SHIFT) || + pages_number >= OSC_MAX_DIRTY_MB_MAX << (20 - PAGE_CACHE_SHIFT) || pages_number > totalram_pages / 4) /* 1/4 of RAM */ return -ERANGE;