Whamcloud - gitweb
LU-11157 obd: keep dirty_max_pages a round number of MB 31/32831/4
authorJohn L. Hammond <jhammond@whamcloud.com>
Wed, 18 Jul 2018 20:47:25 +0000 (15:47 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 19 Jul 2018 15:34:12 +0000 (15:34 +0000)
commitd3f88d376c49e4520a0d695a4b4e9b0c2dbebaaf
tree6a5a96e94c20e80f85fc52572294cae637d9fbec
parentdea1cde92014545d97406bf8adba20840abdb1a9
LU-11157 obd: keep dirty_max_pages a round number of MB

In client_adjust_max_dirty() ensure that the dirty pages limit is
always divisible by 256 so that it may faithfully be represented in MB
as is the case when the max_dirty_mb parameters are used.

Test-Parameters: trivial

Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: I8e2fbdd4bf253a46e2951e7840484ab6a617fbe2
Reviewed-on: https://review.whamcloud.com/32831
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
lustre/include/obd.h