ext3, ext4, ocfs2: remove unused macro NAMEI_RA_INDEX
Subsystems (2)
RFC PATCH 1/1 ext3, ext4, ocfs2: remove unused macro NAMEI_RA_INDEX
This macro, initially introduced by ext2 in v0.99.15, does not have any users from the beginning. It has been removed in later ext2 version but still remains in the code of ext3, ext4, ocfs2. Remove this macro there.
--- fs/ext3/namei.c | 1 - fs/ext4/namei.c | 1 - fs/ocfs2/dir.c | 1 - 3 files changed, 3 deletions(-)
fs/ext3/namei.c +0 -1
@@ -36,7 +36,6 @@#define NAMEI_RA_CHUNKS 2#define NAMEI_RA_BLOCKS 4#define NAMEI_RA_SIZE (NAMEI_RA_CHUNKS * NAMEI_RA_BLOCKS) -#define NAMEI_RA_INDEX (c,b) (((c) * NAMEI_RA_BLOCKS) + (b)) static struct buffer_head *ext3_append(handle_t *handle, struct inode *inode,
fs/ext4/namei.c +0 -1
@@ -47,7 +47,6 @@#define NAMEI_RA_CHUNKS 2#define NAMEI_RA_BLOCKS 4#define NAMEI_RA_SIZE (NAMEI_RA_CHUNKS * NAMEI_RA_BLOCKS) -#define NAMEI_RA_INDEX (c,b) (((c) * NAMEI_RA_BLOCKS) + (b)) static struct buffer_head *ext4_append(handle_t *handle, struct inode *inode,
fs/ocfs2/dir.c +0 -1
@@ -67,7 +67,6 @@#define NAMEI_RA_CHUNKS 2#define NAMEI_RA_BLOCKS 4#define NAMEI_RA_SIZE (NAMEI_RA_CHUNKS * NAMEI_RA_BLOCKS) -#define NAMEI_RA_INDEX (c,b) (((c) * NAMEI_RA_BLOCKS) + (b))static unsigned char ocfs2_filetype_table[] = {DT_UNKNOWN ,DT_REG ,DT_DIR ,DT_CHR ,DT_BLK ,DT_FIFO ,DT_SOCK ,DT_LNK
Signature · 1 line
1.7.9.5
Jan Kara
reviewerQuoted 4 lines · Guo Chao
This macro, initially introduced by ext2 in v0.99.15, does not have any users from the beginning. It has been removed in later ext2 version but still remains in the code of ext3, ext4, ocfs2. Remove this macro there.
Thanks. I've merged the patch into my tree. Since it's trivial, I guess
other fs maintainers won't mind.
Honza
Quoted 52 lines
Cc Jan Kara <[email protected]>Cc "Theodore Ts'o" <[email protected]>Cc Mark Fasheh <[email protected]>Cc linux-ext4 at vger.kernel.orgCc ocfs2-devel at oss.oracle.comSigned-off-by Guo Chao <[email protected]>--- fs/ext3/namei.c | 1 - fs/ext4/namei.c | 1 - fs/ocfs2/dir.c | 1 - 3 files changed, 3 deletions(-)fs/ext3/namei.c +0
-1@@ -36,7 +36,6 @@#define NAMEI_RA_CHUNKS 2#define NAMEI_RA_BLOCKS 4#define NAMEI_RA_SIZE (NAMEI_RA_CHUNKS * NAMEI_RA_BLOCKS) -#define NAMEI_RA_INDEX (c,b) (((c) * NAMEI_RA_BLOCKS) + (b)) static struct buffer_head *ext3_append(handle_t *handle, struct inode *inode,fs/ext4/namei.c +0
-1@@ -47,7 +47,6 @@#define NAMEI_RA_CHUNKS 2#define NAMEI_RA_BLOCKS 4#define NAMEI_RA_SIZE (NAMEI_RA_CHUNKS * NAMEI_RA_BLOCKS) -#define NAMEI_RA_INDEX (c,b) (((c) * NAMEI_RA_BLOCKS) + (b)) static struct buffer_head *ext4_append(handle_t *handle, struct inode *inode,fs/ocfs2/dir.c +0
-1@@ -67,7 +67,6 @@#define NAMEI_RA_CHUNKS 2#define NAMEI_RA_BLOCKS 4#define NAMEI_RA_SIZE (NAMEI_RA_CHUNKS * NAMEI_RA_BLOCKS) -#define NAMEI_RA_INDEX (c,b) (((c) * NAMEI_RA_BLOCKS) + (b))static unsigned char ocfs2_filetype_table[] = {DT_UNKNOWN ,DT_REG ,DT_DIR ,DT_CHR ,DT_BLK ,DT_FIFO ,DT_SOCK ,DT_LNK Signature · 1 line
1.7.9.5
Signature · 2 lines
Jan Kara <[email protected]> SUSE Labs, CR
Quoted 7 lines · Jan Kara
Quoted 4 lines · Guo Chao
This macro, initially introduced by ext2 in v0.99.15, does not have any users from the beginning. It has been removed in later ext2 version but still remains in the code of ext3, ext4, ocfs2. Remove this macro there.
Thanks. I've merged the patch into my tree. Since it's trivial, I guess
other fs maintainers won't mind.
Thanks, Jan!
- Ted
Mark Fasheh
Acked-byQuoted 7 lines · Jan Kara
Quoted 4 lines · Guo Chao
This macro, initially introduced by ext2 in v0.99.15, does not have any users from the beginning. It has been removed in later ext2 version but still remains in the code of ext3, ext4, ocfs2. Remove this macro there.
Thanks. I've merged the patch into my tree. Since it's trivial, I guess
other fs maintainers won't mind.
Looks good, thanks!
--Mark
--
Mark Fasheh