nilfs2: cleanup multi kmem_cache_{create,destroy} code
authorLi Hong <lihong.hi@gmail.com>
Mon, 5 Apr 2010 16:54:11 +0000 (00:54 +0800)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Mon, 10 May 2010 02:32:30 +0000 (11:32 +0900)
commit41c88bd74d372db5102996a4ea6167a725c24b5e
tree98b8e208d41f7760458e82569e297843415bbe7d
parentaaed1d5bfac459ead9aaad324e7fe3326250f50a
nilfs2: cleanup multi kmem_cache_{create,destroy} code

This cleanup patch gives several improvements:

 - Moving all kmem_cache_{create_destroy} calls into one place, which removes
 some small function calls, cleans up error check code and clarify the logic.

 - Mark all initial code in __init section.

 - Remove some very obvious comments.

 - Adjust some declarations.

 - Fix some space-tab issues.

Signed-off-by: Li Hong <lihong.hi@gmail.com>
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
fs/nilfs2/btree.c
fs/nilfs2/btree.h
fs/nilfs2/segbuf.c
fs/nilfs2/segbuf.h
fs/nilfs2/segment.c
fs/nilfs2/segment.h
fs/nilfs2/super.c