Skip to content

Commit

Permalink
nilfs2: use nilfs_btree_node_size()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
geliangtang authored and torvalds committed Feb 28, 2017
1 parent 9340747 commit 1508ddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nilfs2/btree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1508ddc

Please sign in to comment.