[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: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Artem Bityutskiy <dedekind@infradead.org>

authored by Kyungmin Park and committed by Artem Bityutskiy abb536e7 a2166b93

+2 -2
+2 -2
fs/jffs2/debug.c
··· 178 while (ref2) { 179 uint32_t totlen = ref_totlen(c, jeb, ref2); 180 181 - if (ref2->flash_offset < jeb->offset || 182 - ref2->flash_offset > jeb->offset + c->sector_size) { 183 JFFS2_ERROR("node_ref %#08x shouldn't be in block at %#08x.\n", 184 ref_offset(ref2), jeb->offset); 185 goto error;
··· 178 while (ref2) { 179 uint32_t totlen = ref_totlen(c, jeb, ref2); 180 181 + if (ref_offset(ref2) < jeb->offset || 182 + ref_offset(ref2) > jeb->offset + c->sector_size) { 183 JFFS2_ERROR("node_ref %#08x shouldn't be in block at %#08x.\n", 184 ref_offset(ref2), jeb->offset); 185 goto error;