Whamcloud - gitweb
LU-3676 llite: to configure max_cached_mb correctly 24/12924/2
authorJinshan Xiong <jinshan.xiong@intel.com>
Wed, 3 Dec 2014 22:59:04 +0000 (14:59 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 15 Jan 2015 04:44:51 +0000 (04:44 +0000)
commit016d6276ed20f4f61894278d055e4fe80fd0a470
treeec07dc19c9a8fc89335ec6cb192bb8be6decd7e6
parentee5e67a03e92d47f50a9b5d1371a8548d44732df
LU-3676 llite: to configure max_cached_mb correctly

If there exists MGS conf_param to reduce the memory cache
max_cached_mb it will fail because dt_exp is not initialized
yet.

It should just go ahead and configure it because certainly it
have enough free LRU slot to deduct ccc_lru_left.

This patch is back-ported from the following one:
Lustre-commit: b0135d72b783eed4d9b86532be6244ebc57b1f39
Lustre-change: http://review.whamcloud.com/11783

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: If837f178592dd487775ddcb15115964fba6429bf
Reviewed-on: http://review.whamcloud.com/12924
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/lproc_llite.c