]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
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)
commit45a90bfd90c1215bf824c0f705b409723f52361b
treee314c36e14c380b87d19e3054494768f4c14e458
parentede86cc473defab74d778aeac14b19f43129d4d1
jbd2: Fix buffer head leak when writing the commit block

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