Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163633
b: refs/heads/master
c: f6f50e2
h: refs/heads/master
i:
  163631: fbbd0b7
v: v3
  • Loading branch information
Jan Kara authored and Theodore Ts'o committed Jul 17, 2009
1 parent c15d430 commit ec763cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 78f1ddbb498283c2445c11b0dfa666424c301803
refs/heads/master: f6f50e28f0cb8d7bcdfaacc83129f005dede11b1
6 changes: 6 additions & 0 deletions trunk/fs/jbd2/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1187,6 +1187,12 @@ static int journal_reset(journal_t *journal)

first = be32_to_cpu(sb->s_first);
last = be32_to_cpu(sb->s_maxlen);
if (first + JBD2_MIN_JOURNAL_BLOCKS > last + 1) {
printk(KERN_ERR "JBD: Journal too short (blocks %llu-%llu).\n",
first, last);
journal_fail_superblock(journal);
return -EINVAL;
}

journal->j_first = first;
journal->j_last = last;
Expand Down

0 comments on commit ec763cb

Please sign in to comment.