diff options
author | David Woodhouse <dwmw2@infradead.org> | 2006-05-24 04:04:17 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-05-24 04:04:17 -0400 |
commit | 99988f7bbd16b861590dda4631c4db6cb17b5091 (patch) | |
tree | 38865d44c905d7f84d7eeb70186482e1e399fe9c /fs/jffs2/nodelist.h | |
parent | 2f785402f39b96a077b6e62bf26164bfb8e0c980 (diff) |
[JFFS2] Introduce ref_next() macro for finding next physical node
Another part of the preparation for switching to an array...
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'fs/jffs2/nodelist.h')
-rw-r--r-- | fs/jffs2/nodelist.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/jffs2/nodelist.h b/fs/jffs2/nodelist.h index 7cc74d2ab4dc..94d152de95eb 100644 --- a/fs/jffs2/nodelist.h +++ b/fs/jffs2/nodelist.h | |||
@@ -88,18 +88,18 @@ struct jffs2_raw_node_ref | |||
88 | #endif | 88 | #endif |
89 | }; | 89 | }; |
90 | 90 | ||
91 | #define ref_next(r) ((r)->next_phys) | ||
92 | |||
91 | static inline struct jffs2_inode_cache *jffs2_raw_ref_to_ic(struct jffs2_raw_node_ref *raw) | 93 | static inline struct jffs2_inode_cache *jffs2_raw_ref_to_ic(struct jffs2_raw_node_ref *raw) |
92 | { | 94 | { |
93 | while(raw->next_in_ino) { | 95 | while(raw->next_in_ino) |
94 | raw = raw->next_in_ino; | 96 | raw = raw->next_in_ino; |
95 | } | ||
96 | 97 | ||
97 | /* NB. This can be a jffs2_xattr_datum or jffs2_xattr_ref and | 98 | /* NB. This can be a jffs2_xattr_datum or jffs2_xattr_ref and |
98 | not actually a jffs2_inode_cache. Check ->class */ | 99 | not actually a jffs2_inode_cache. Check ->class */ |
99 | return ((struct jffs2_inode_cache *)raw); | 100 | return ((struct jffs2_inode_cache *)raw); |
100 | } | 101 | } |
101 | 102 | ||
102 | |||
103 | /* flash_offset & 3 always has to be zero, because nodes are | 103 | /* flash_offset & 3 always has to be zero, because nodes are |
104 | always aligned at 4 bytes. So we have a couple of extra bits | 104 | always aligned at 4 bytes. So we have a couple of extra bits |
105 | to play with, which indicate the node's status; see below: */ | 105 | to play with, which indicate the node's status; see below: */ |