diff options
author | David Woodhouse <dwmw2@infradead.org> | 2006-05-22 11:32:05 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-05-22 11:32:05 -0400 |
commit | 987d47b71a85bd83dc40c870abee3b64f2002163 (patch) | |
tree | ecb840640cb1f7309b26d2c9a332bee5d0db6df9 /fs/jffs2/xattr.h | |
parent | 0eac940b8a087576c66ecf8e0f294f2ceb3b607b (diff) |
[JFFS2] Put list of nodes in common part of ic/x_ref/x_datum structure
We'll be using a proper list of nodes in the jffs2_xattr_datum and
jffs2_xattr_ref structures, because the existing code to overwrite
them is just broken. Put it in the common part at the front of the
structure which is shared with the jffs2_inode_cache, so that the
jffs2_link_node_ref() function can do the right thing.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'fs/jffs2/xattr.h')
-rw-r--r-- | fs/jffs2/xattr.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/jffs2/xattr.h b/fs/jffs2/xattr.h index e2aa2394ab64..2c199856c582 100644 --- a/fs/jffs2/xattr.h +++ b/fs/jffs2/xattr.h | |||
@@ -20,11 +20,11 @@ | |||
20 | struct jffs2_xattr_datum | 20 | struct jffs2_xattr_datum |
21 | { | 21 | { |
22 | void *always_null; | 22 | void *always_null; |
23 | u8 class; | ||
24 | u8 flags; | ||
25 | u16 xprefix; /* see JFFS2_XATTR_PREFIX_* */ | ||
26 | |||
27 | struct jffs2_raw_node_ref *node; | 23 | struct jffs2_raw_node_ref *node; |
24 | uint8_t class; | ||
25 | uint8_t flags; | ||
26 | uint16_t xprefix; /* see JFFS2_XATTR_PREFIX_* */ | ||
27 | |||
28 | struct list_head xindex; /* chained from c->xattrindex[n] */ | 28 | struct list_head xindex; /* chained from c->xattrindex[n] */ |
29 | uint32_t refcnt; /* # of xattr_ref refers this */ | 29 | uint32_t refcnt; /* # of xattr_ref refers this */ |
30 | uint32_t xid; | 30 | uint32_t xid; |
@@ -42,11 +42,11 @@ struct jffs2_inode_cache; | |||
42 | struct jffs2_xattr_ref | 42 | struct jffs2_xattr_ref |
43 | { | 43 | { |
44 | void *always_null; | 44 | void *always_null; |
45 | u8 class; | 45 | struct jffs2_raw_node_ref *node; |
46 | u8 flags; /* Currently unused */ | 46 | uint8_t class; |
47 | uint8_t flags; /* Currently unused */ | ||
47 | u16 unused; | 48 | u16 unused; |
48 | 49 | ||
49 | struct jffs2_raw_node_ref *node; | ||
50 | union { | 50 | union { |
51 | struct jffs2_inode_cache *ic; /* reference to jffs2_inode_cache */ | 51 | struct jffs2_inode_cache *ic; /* reference to jffs2_inode_cache */ |
52 | uint32_t ino; /* only used in scanning/building */ | 52 | uint32_t ino; /* only used in scanning/building */ |