* [PATCH] JFFS2: fix wrong usage of ref->flash_offset
@ 2006-12-19 4:48 Kyungmin Park
0 siblings, 0 replies; only message in thread
From: Kyungmin Park @ 2006-12-19 4:48 UTC (permalink / raw)
To: linux-mtd
[MTD] JFFS2: fix worng usage of ref-f>flash_offset
We use the ref_offset macro instead of ref->flash_offset.
It makes the problem in debug mode
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
--
diff --git a/fs/jffs2/debug.c b/fs/jffs2/debug.c
index 72b4fc1..4189e4a 100644
--- a/fs/jffs2/debug.c
+++ b/fs/jffs2/debug.c
@@ -178,8 +178,8 @@ __jffs2_dbg_acct_paranoia_check_nolock(struct jffs2_sb_info *c,
while (ref2) {
uint32_t totlen = ref_totlen(c, jeb, ref2);
- if (ref2->flash_offset < jeb->offset ||
- ref2->flash_offset > jeb->offset + c->sector_size) {
+ if (ref_offset(ref2) < jeb->offset ||
+ ref_offset(ref2) > jeb->offset + c->sector_size) {
JFFS2_ERROR("node_ref %#08x shouldn't be in block at %#08x.\n",
ref_offset(ref2), jeb->offset);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2006-12-19 4:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-19 4:48 [PATCH] JFFS2: fix wrong usage of ref->flash_offset Kyungmin Park
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox