[PATCH] reiserfs: do not check if unsigned < 0
This patch fixes bugs in reiserfs where unsigned integers were checked whether they are less then 0. Signed-off-by: Vladimir V. Saveliev <vs@namesys.com> Cc: Neil Brown <neilb@cse.unsw.edu.au> Signed-off-by: Hans Reiser <reiser@namesys.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
a57ebfdb2c
commit
c499ec24c3
@@ -2319,8 +2319,7 @@ static int journal_read(struct super_block *p_s_sb)
|
||||
return 1;
|
||||
}
|
||||
jh = (struct reiserfs_journal_header *)(journal->j_header_bh->b_data);
|
||||
if (le32_to_cpu(jh->j_first_unflushed_offset) >= 0 &&
|
||||
le32_to_cpu(jh->j_first_unflushed_offset) <
|
||||
if (le32_to_cpu(jh->j_first_unflushed_offset) <
|
||||
SB_ONDISK_JOURNAL_SIZE(p_s_sb)
|
||||
&& le32_to_cpu(jh->j_last_flush_trans_id) > 0) {
|
||||
oldest_start =
|
||||
|
Reference in New Issue
Block a user