[JFFS2] Finally remove redundant ref->__totlen field.

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Tue Apr 22 20:59:01 EDT 2008


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=19e56ceae7cb1833ffd806038c19477b2c265f9f
Commit:     19e56ceae7cb1833ffd806038c19477b2c265f9f
Parent:     27e6b8e388fffb332476ddab00bbe05cd5da5f32
Author:     David Woodhouse <dwmw2 at infradead.org>
AuthorDate: Wed Apr 23 01:26:12 2008 +0100
Committer:  David Woodhouse <dwmw2 at infradead.org>
CommitDate: Wed Apr 23 01:26:12 2008 +0100

    [JFFS2] Finally remove redundant ref->__totlen field.
    
    Haven't had any complaints about it recently, despite having the test
    code enabled to verify that the calculated length is correct.
    
    Kill it off, just by #undef TEST_TOTLEN for now; removing it for real
    can come a little later.
    
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 fs/jffs2/nodelist.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/jffs2/nodelist.h b/fs/jffs2/nodelist.h
index ec1aae9..8219df6 100644
--- a/fs/jffs2/nodelist.h
+++ b/fs/jffs2/nodelist.h
@@ -87,7 +87,7 @@ struct jffs2_raw_node_ref
 		xattr_ref or xattr_datum instead. The common part of those structures
 		has NULL in the first word. See jffs2_raw_ref_to_ic() below */
 	uint32_t flash_offset;
-#define TEST_TOTLEN
+#undef TEST_TOTLEN
 #ifdef TEST_TOTLEN
 	uint32_t __totlen; /* This may die; use ref_totlen(c, jeb, ) below */
 #endif



More information about the linux-mtd-cvs mailing list