Commit abb536e7 authored by Kyungmin Park's avatar Kyungmin Park Committed by Artem Bityutskiy

[JFFS2] use the ref_offset macro

Don't use ref->flash_offset directly in debugging code, use the ref_offset macro instead.
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: default avatarArtem Bityutskiy <dedekind@infradead.org>
parent a2166b93
...@@ -178,8 +178,8 @@ __jffs2_dbg_acct_paranoia_check_nolock(struct jffs2_sb_info *c, ...@@ -178,8 +178,8 @@ __jffs2_dbg_acct_paranoia_check_nolock(struct jffs2_sb_info *c,
while (ref2) { while (ref2) {
uint32_t totlen = ref_totlen(c, jeb, ref2); uint32_t totlen = ref_totlen(c, jeb, ref2);
if (ref2->flash_offset < jeb->offset || if (ref_offset(ref2) < jeb->offset ||
ref2->flash_offset > jeb->offset + c->sector_size) { ref_offset(ref2) > jeb->offset + c->sector_size) {
JFFS2_ERROR("node_ref %#08x shouldn't be in block at %#08x.\n", JFFS2_ERROR("node_ref %#08x shouldn't be in block at %#08x.\n",
ref_offset(ref2), jeb->offset); ref_offset(ref2), jeb->offset);
goto error; goto error;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment