* [merged] nilfs2-use-i_blocksize.patch removed from -mm tree
@ 2017-02-28 20:51 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2017-02-28 20:51 UTC (permalink / raw)
To: geliangtang, konishi.ryusuke, mm-commits
The patch titled
Subject: nilfs2: use i_blocksize()
has been removed from the -mm tree. Its filename was
nilfs2-use-i_blocksize.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Geliang Tang <geliangtang@gmail.com>
Subject: nilfs2: use i_blocksize()
Since i_blocksize() helper has been defined in fs.h, use it instead
of open-coding.
Link: http://lkml.kernel.org/r/1485184655-3895-3-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>
---
fs/nilfs2/alloc.c | 2 +-
fs/nilfs2/btree.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff -puN fs/nilfs2/alloc.c~nilfs2-use-i_blocksize fs/nilfs2/alloc.c
--- a/fs/nilfs2/alloc.c~nilfs2-use-i_blocksize
+++ a/fs/nilfs2/alloc.c
@@ -34,7 +34,7 @@
static inline unsigned long
nilfs_palloc_groups_per_desc_block(const struct inode *inode)
{
- return (1UL << inode->i_blkbits) /
+ return i_blocksize(inode) /
sizeof(struct nilfs_palloc_group_desc);
}
diff -puN fs/nilfs2/btree.c~nilfs2-use-i_blocksize fs/nilfs2/btree.c
--- a/fs/nilfs2/btree.c~nilfs2-use-i_blocksize
+++ a/fs/nilfs2/btree.c
@@ -119,7 +119,7 @@ nilfs_btree_node_set_nchildren(struct ni
static int nilfs_btree_node_size(const struct nilfs_bmap *btree)
{
- return 1 << btree->b_inode->i_blkbits;
+ return i_blocksize(btree->b_inode);
}
static int nilfs_btree_nchildren_per_block(const struct nilfs_bmap *btree)
_
Patches currently in -mm which might be from geliangtang@gmail.com are
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-02-28 20:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-28 20:51 [merged] nilfs2-use-i_blocksize.patch removed from -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.