diff options
author | Kyungmin Park <kyungmin.park@samsung.com> | 2006-12-22 02:39:30 -0500 |
---|---|---|
committer | Artem Bityutskiy <dedekind@infradead.org> | 2007-01-10 07:03:20 -0500 |
commit | abb536e7ac8719243cfc4b40b39bf3eefd028f82 (patch) | |
tree | 82b84bffa39ae9a4f469e3da751934ac8fadd861 /fs | |
parent | a2166b933ef9099b4fa6860b165e6dac553a97aa (diff) |
[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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/jffs2/debug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/jffs2/debug.c b/fs/jffs2/debug.c index 72b4fc13a106..4189e4a36050 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, | |||
178 | while (ref2) { | 178 | while (ref2) { |
179 | uint32_t totlen = ref_totlen(c, jeb, ref2); | 179 | uint32_t totlen = ref_totlen(c, jeb, ref2); |
180 | 180 | ||
181 | if (ref2->flash_offset < jeb->offset || | 181 | if (ref_offset(ref2) < jeb->offset || |
182 | ref2->flash_offset > jeb->offset + c->sector_size) { | 182 | ref_offset(ref2) > jeb->offset + c->sector_size) { |
183 | JFFS2_ERROR("node_ref %#08x shouldn't be in block at %#08x.\n", | 183 | JFFS2_ERROR("node_ref %#08x shouldn't be in block at %#08x.\n", |
184 | ref_offset(ref2), jeb->offset); | 184 | ref_offset(ref2), jeb->offset); |
185 | goto error; | 185 | goto error; |