projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9340747
)
nilfs2: use nilfs_btree_node_size()
author
Geliang Tang
<geliangtang@gmail.com>
Mon, 27 Feb 2017 22:28:35 +0000
(14:28 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 28 Feb 2017 02:43:46 +0000
(18:43 -0800)
Use nilfs_btree_node_size() instead of open-coding.
Link:
http://lkml.kernel.org/r/1485184655-3895-2-git-send-email-konishi.ryusuke@lab.ntt.co.jp
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/nilfs2/btree.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nilfs2/btree.c
b/fs/nilfs2/btree.c
index 2e315f9f2e51d6f19fae04ced022777af1186cdf..9c7ea176ab0f8816a5662ebcde53c8c529e11475 100644
(file)
--- a/
fs/nilfs2/btree.c
+++ b/
fs/nilfs2/btree.c
@@
-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 {