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>
#define XATTRINDEX_HASHSIZE (57)
uint32_t highest_xid;
struct list_head xattrindex[XATTRINDEX_HASHSIZE];
- struct list_head xattr_temp;
struct list_head xattr_unchecked;
+ struct jffs2_xattr_ref *xref_temp;
struct rw_semaphore xattr_sem;
uint32_t xdatum_mem_usage;
uint32_t xdatum_mem_threshold;
memset(ref, 0, sizeof(struct jffs2_xattr_ref));
ref->class = RAWNODE_CLASS_XATTR_REF;
- INIT_LIST_HEAD(&ref->ilist);
return ref;
}
uint32_t ino;
int nlink;
#ifdef CONFIG_JFFS2_FS_XATTR
- struct list_head ilist;
+ struct jffs2_xattr_ref *xref;
#endif
};