diff options
author | KaiGai Kohei <kaigai@ak.jp.nec.com> | 2006-05-13 02:15:07 -0400 |
---|---|---|
committer | KaiGai Kohei <kaigai@ak.jp.nec.com> | 2006-05-13 02:15:07 -0400 |
commit | 8f2b6f49c656dd4597904f8c20661d6b73cdbbeb (patch) | |
tree | 7452e7d2fb9070181a943c104c409cac79abc991 /fs/jffs2/xattr.h | |
parent | 8b0b339d46ca0105a9936e3caa3bac80b72de7a3 (diff) |
[JFFS2][XATTR] Remove 'struct list_head ilist' from jffs2_inode_cache.
This patch can reduce 4-byte of memory usage per inode_cache.
[4/10] jffs2-xattr-v5.1-04-remove_ilist_from_ic.patch
Signed-off-by: KaiGai Kohei <kaigai@ak.jp.nec.com>
Diffstat (limited to 'fs/jffs2/xattr.h')
-rw-r--r-- | fs/jffs2/xattr.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/jffs2/xattr.h b/fs/jffs2/xattr.h index d157ad641ed4..0360097e5933 100644 --- a/fs/jffs2/xattr.h +++ b/fs/jffs2/xattr.h | |||
@@ -54,7 +54,7 @@ struct jffs2_xattr_ref | |||
54 | struct jffs2_xattr_datum *xd; /* reference to jffs2_xattr_datum */ | 54 | struct jffs2_xattr_datum *xd; /* reference to jffs2_xattr_datum */ |
55 | uint32_t xid; /* only used in sccanning/building */ | 55 | uint32_t xid; /* only used in sccanning/building */ |
56 | }; | 56 | }; |
57 | struct list_head ilist; /* chained from ic->ilist */ | 57 | struct jffs2_xattr_ref *next; /* chained from ic->xref_list */ |
58 | }; | 58 | }; |
59 | 59 | ||
60 | #ifdef CONFIG_JFFS2_FS_XATTR | 60 | #ifdef CONFIG_JFFS2_FS_XATTR |
@@ -86,9 +86,6 @@ extern ssize_t jffs2_listxattr(struct dentry *, char *, size_t); | |||
86 | #define jffs2_setxattr generic_setxattr | 86 | #define jffs2_setxattr generic_setxattr |
87 | #define jffs2_removexattr generic_removexattr | 87 | #define jffs2_removexattr generic_removexattr |
88 | 88 | ||
89 | /*---- Any inline initialize functions ----*/ | ||
90 | #define init_xattr_inode_cache(x) INIT_LIST_HEAD(&((x)->ilist)) | ||
91 | |||
92 | #else | 89 | #else |
93 | 90 | ||
94 | #define jffs2_init_xattr_subsystem(c) | 91 | #define jffs2_init_xattr_subsystem(c) |
@@ -106,8 +103,6 @@ extern ssize_t jffs2_listxattr(struct dentry *, char *, size_t); | |||
106 | #define jffs2_setxattr NULL | 103 | #define jffs2_setxattr NULL |
107 | #define jffs2_removexattr NULL | 104 | #define jffs2_removexattr NULL |
108 | 105 | ||
109 | #define init_xattr_inode_cache(x) | ||
110 | |||
111 | #endif /* CONFIG_JFFS2_FS_XATTR */ | 106 | #endif /* CONFIG_JFFS2_FS_XATTR */ |
112 | 107 | ||
113 | #ifdef CONFIG_JFFS2_FS_SECURITY | 108 | #ifdef CONFIG_JFFS2_FS_SECURITY |