nilfs2: get maximum number of child nodes from bmap object
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Tue, 13 Jul 2010 14:33:54 +0000 (23:33 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Fri, 23 Jul 2010 01:02:14 +0000 (10:02 +0900)
commit5ad2686e9266f24a0bb76b01d5c3ae29b4e149fe
treedf7d1d37ec380e58b0b171db07c5d8a7f9bb4ff0
parent9b7b265c9ab67fcd1245d6b64fa5ca2eda43ac88
nilfs2: get maximum number of child nodes from bmap object

The patch "reduce repetitive calculation of max number of child nodes"
gathered up the calculation of maximum number of child nodes into
nilfs_btree_nchildren_per_block() function.  This makes the function
get resultant value from a private variable in bmap object instead of
calculating it for each call.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
fs/nilfs2/bmap.h
fs/nilfs2/btree.c