Whamcloud - gitweb
LU-3676 llite: error setting max_cache_mb at mount time
authorJinshan Xiong <jinshan.xiong@intel.com>
Wed, 31 Jul 2013 19:31:27 +0000 (12:31 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 17 Sep 2013 10:17:45 +0000 (06:17 -0400)
commit6a102ed1ab5acb5df5a2cc80e8362fd26710b1a8
tree00e5699cf47d4f2022b218d1c28676285ea56d47
parent50e695ca3e3ed2a543c23689d77340ed19fa5e0a
LU-3676 llite: error setting max_cache_mb at mount time

The root cause is that when max_cache_mb conf parameter is applied,
the client isn't connected to the OST yet so that sbi->ll_dt_exp is
NULL. However, it's not necessary to shrink the cache memory in this
case so success should be returned.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: Ib12800812b635207bf4001e2272aadb0ce1e0d6f
Reviewed-on: http://review.whamcloud.com/7194
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/llite/lproc_llite.c