jbd2: fix journal checksum feature flag handling
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 11 Sep 2014 15:38:21 +0000 (11:38 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 11 Sep 2014 15:38:21 +0000 (11:38 -0400)
commitfeb8c6d3dd0f2cc0e1c3376d099cf298c5f2c2c8
tree1f91bf01066b1a35414e4f6291fd4ff4ab47a45f
parentc7f725435adcf2ade4b9152ee33339d28f4cc330
jbd2: fix journal checksum feature flag handling

Clear all three journal checksum feature flags before turning on
whichever journal checksum options we want.  Rearrange the error
checking so that newer flags get complained about first.

Reported-by: TR Reardon <thomas_reardon@hotmail.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/super.c
fs/jbd2/journal.c