Whamcloud - gitweb
e2fsck: fix minor errors in journal handling
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 8 Sep 2014 23:12:48 +0000 (16:12 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 11 Sep 2014 20:45:42 +0000 (16:45 -0400)
commitdad8fc5fff9d6740488b0f06c0fe0e1adfb19b08
tree98cc6505b7532715ca1f63db441aa4b3e72f68c7
parent759c46cf45a8f8a1938404604bf666479e9b9831
e2fsck: fix minor errors in journal handling

The journal superblock's s_sequence field seems to track the tid of
the tail (oldest) transaction in the log.  Therefore, when we release
the journal, set the s_sequence to the tail_sequence, because setting
it to the transaction_sequence means that we're setting the tid to
that of the head of the log.  Granted, for replay these two are
usually the same (and s_start == 0 anyway) so thus far we've gotten
lucky and nobody noticed.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/journal.c