nilfs2: use nilfs_btree_node_size()

Use nilfs_btree_node_size() instead of open-coding.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Geliang Tang <[email protected]>
Signed-off-by: Ryusuke Konishi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Geliang Tang 2017-02-27 14:28:35 -08:00 • committed by Linus Torvalds
commit 1508ddc39a

View file

@ -1870,7 +1870,7 @@ int nilfs_btree_convert_and_insert(struct nilfs_bmap *btree,
di = &dreq;
ni = NULL;
} else if ((n + 1) <= NILFS_BTREE_NODE_NCHILDREN_MAX(
1 << btree->b_inode->i_blkbits)) {
nilfs_btree_node_size(btree))) {
di = &dreq;
ni = &nreq;
} else {