diff options
author | David Woodhouse <dwmw2@infradead.org> | 2006-05-22 17:29:23 +0200 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-05-22 17:29:23 +0200 |
commit | 0eac940b8a087576c66ecf8e0f294f2ceb3b607b (patch) | |
tree | a21f5376f5fec2c21fe23e90e3317f1a1c48cc3e /fs/jffs2/erase.c | |
parent | [JFFS2] Extend jffs2_link_node_ref() to link into per-inode list too. (diff) | |
download | linux-0eac940b8a087576c66ecf8e0f294f2ceb3b607b.tar.xz linux-0eac940b8a087576c66ecf8e0f294f2ceb3b607b.zip |
[JFFS2] Add some preemptive BUG checks for XATTR code
In a couple of places, we assume that what's at the end of the
->next_in_ino list is a struct jffs2_inode_cache. Let's check
for that, since we expect it to change soon.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'fs/jffs2/erase.c')
-rw-r--r-- | fs/jffs2/erase.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/jffs2/erase.c b/fs/jffs2/erase.c index 0fc19a2fb5d9..4616fed75730 100644 --- a/fs/jffs2/erase.c +++ b/fs/jffs2/erase.c @@ -230,6 +230,7 @@ static inline void jffs2_remove_node_refs_from_ino_list(struct jffs2_sb_info *c, at the end of the linked list. Stash it and continue from the beginning of the list */ ic = (struct jffs2_inode_cache *)(*prev); + BUG_ON(ic->class != RAWNODE_CLASS_INODE_CACHE); prev = &ic->nodes; continue; } |