Whamcloud - gitweb
LU-32 osd: keep root node BH ref of IAM container
authorLiang Zhen <liang@whamcloud.com>
Mon, 27 Dec 2010 05:35:20 +0000 (13:35 +0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 4 Jan 2012 15:47:18 +0000 (10:47 -0500)
commit4ad943d14235ce8e8599477b340dbd75c076581e
tree7552b26aa10b097ed36decf8fc25d80bfe632a34
parent39308b9999b42bf91aff860a71669ca13686c475
LU-32 osd: keep root node BH ref of IAM container

IAM in ldiskfs-osd will always consume some slots in bh_lru (see:
fs/buffer.c), if we keep buffer_head reference on root node,
we can save one slot in bh_lru and could be somehow helpful for
overall performance, I did some tests, LRU hits rate increased
5%-10% while creating files if we always keep this reference.

Signed-off-by: Liang Zhen <liang@whamcloud.com>
Change-Id: I954f26932462169c9bfc6bbfe1a57b5348624179
Reviewed-on: http://review.whamcloud.com/1826
Tested-by: Hudson
Reviewed-by: Bobi Jam <bobijam@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_iam.c
lustre/osd-ldiskfs/osd_iam.h