]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ext3, ext4, ocfs2: remove unused macro NAMEI_RA_INDEX
authorGuo Chao <yan@linux.vnet.ibm.com>
Tue, 18 Dec 2012 08:56:39 +0000 (16:56 +0800)
committerJan Kara <jack@suse.cz>
Mon, 21 Jan 2013 10:19:55 +0000 (11:19 +0100)
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>
fs/ext3/namei.c
fs/ext4/namei.c
fs/ocfs2/dir.c

index 890b8947c5468b863327e87985ef42334f53fa74..88f64eb1b6faaaa12baba47ca8fd74ad371dd429 100644 (file)
@@ -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,
index f9ed946a448ebb4a7704c5d08fcfe44c42a75f80..cc9a512f3a8af02a8734d44883ef8598db9dad93 100644 (file)
@@ -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,
index 8fe4e2892ab9ccd983304a825c338df57a5376b8..fc121350d8cb5b6535dcfcddf471e0e1e769d717 100644 (file)
@@ -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