jbd2: Fix buffer head leak when writing the commit block
authorTheodore Ts'o <tytso@mit.edu>
Mon, 6 Oct 2008 16:04:02 +0000 (12:04 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 6 Oct 2008 16:04:02 +0000 (12:04 -0400)
Also make sure the buffer heads are marked clean before submitting bh
for writing.  The previous code was marking the buffer head dirty,
which would have forced an unneeded write (and seek) to the journal
for no good reason.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/jbd2/commit.c

Simple merge