Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1563660 > unrolled thread
| Started by | Geliang Tang <geliangtang@gmail.com> |
|---|---|
| First post | 2017-01-20 15:40 +0100 |
| Last post | 2017-01-23 01:30 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 2/2] nilfs2: use nilfs_btree_node_size() Geliang Tang <geliangtang@gmail.com> - 2017-01-20 15:40 +0100
Re: [PATCH 2/2] nilfs2: use nilfs_btree_node_size() Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> - 2017-01-23 01:30 +0100
| From | Geliang Tang <geliangtang@gmail.com> |
|---|---|
| Date | 2017-01-20 15:40 +0100 |
| Subject | [PATCH 2/2] nilfs2: use nilfs_btree_node_size() |
| Message-ID | <t1Iwa-8q4-9@gated-at.bofh.it> |
Use nilfs_btree_node_size() instead of open-coding.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
---
fs/nilfs2/btree.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/nilfs2/btree.c b/fs/nilfs2/btree.c
index d75238a..06ffa13 100644
--- 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 {
--
2.9.3
[toc] | [next] | [standalone]
| From | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> |
|---|---|
| Date | 2017-01-23 01:30 +0100 |
| Message-ID | <t2AGd-7MJ-7@gated-at.bofh.it> |
| In reply to | #1563660 |
On Fri, 20 Jan 2017 22:34:58 +0800, Geliang Tang wrote:
> Use nilfs_btree_node_size() instead of open-coding.
>
> Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Applied, thanks.
Ryusuke Konishi
> ---
> fs/nilfs2/btree.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/nilfs2/btree.c b/fs/nilfs2/btree.c
> index d75238a..06ffa13 100644
> --- 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 {
> --
> 2.9.3
>
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web