Skip to content

Commit 306a749

Browse files
Guo Chaojankara
authored andcommitted
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. Cc: Jan Kara <jack@suse.cz> Cc: linux-ext4@vger.kernel.org Cc: ocfs2-devel@oss.oracle.com Acked-by: Mark Fasheh <mfasheh@suse.de> Acked-by: "Theodore Ts'o" <tytso@mit.edu> Signed-off-by: Guo Chao <yan@linux.vnet.ibm.com> Signed-off-by: Jan Kara <jack@suse.cz>
1 parent 9a92841 commit 306a749

3 files changed

Lines changed: 0 additions & 3 deletions

File tree

‎fs/ext3/namei.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
#define NAMEI_RA_CHUNKS 2
3737
#define NAMEI_RA_BLOCKS 4
3838
#define NAMEI_RA_SIZE (NAMEI_RA_CHUNKS * NAMEI_RA_BLOCKS)
39-
#define NAMEI_RA_INDEX(c,b) (((c) * NAMEI_RA_BLOCKS) + (b))
4039

4140
static struct buffer_head *ext3_append(handle_t *handle,
4241
struct inode *inode,

‎fs/ext4/namei.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
#define NAMEI_RA_CHUNKS 2
4848
#define NAMEI_RA_BLOCKS 4
4949
#define NAMEI_RA_SIZE (NAMEI_RA_CHUNKS * NAMEI_RA_BLOCKS)
50-
#define NAMEI_RA_INDEX(c,b) (((c) * NAMEI_RA_BLOCKS) + (b))
5150

5251
static struct buffer_head *ext4_append(handle_t *handle,
5352
struct inode *inode,

‎fs/ocfs2/dir.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
#define NAMEI_RA_CHUNKS 2
6868
#define NAMEI_RA_BLOCKS 4
6969
#define NAMEI_RA_SIZE (NAMEI_RA_CHUNKS * NAMEI_RA_BLOCKS)
70-
#define NAMEI_RA_INDEX(c,b) (((c) * NAMEI_RA_BLOCKS) + (b))
7170

7271
static unsigned char ocfs2_filetype_table[] = {
7372
DT_UNKNOWN, DT_REG, DT_DIR, DT_CHR, DT_BLK, DT_FIFO, DT_SOCK, DT_LNK

0 commit comments

Comments
 (0)