ext4: flush journal when switching from data=journal mode
authorYongqiang Yang <xiaoqiangnk@gmail.com>
Wed, 28 Dec 2011 18:55:51 +0000 (13:55 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 28 Dec 2011 18:55:51 +0000 (13:55 -0500)
It's necessary to flush the journal when switching away from
data=journal mode.  This is because there are no revoke records when
data blocks are journalled, but revoke records are required in the
other journal modes.

However, it is not necessary to flush the journal when switching into
data=journal mode, and flushing the journal is expensive.  So let's
avoid it in that case.

Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>

No differences found