]> git.baikalelectronics.ru Git - kernel.git/commit
jbd2: Fix reference counting on the journal commit block's buffer head
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 5 Feb 2008 15:55:26 +0000 (10:55 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 5 Feb 2008 15:55:26 +0000 (10:55 -0500)
commitc69c7349cb513d2b453512081f154addfe107387
tree3ebf433583c1a456d251fdcffd524fdc2f5518d3
parentc4a9ee7723913236ddd2a676dad38c8ac884e7ac
jbd2: Fix reference counting on the journal commit block's buffer head

With journal checksum patch we added asynchronous commits of journal
commit headers, and accidentally dropped taking a reference on the
buffer head.

(Before the change, sync_dirty_buffer did the get_bh(). The associative
put_bh is done by journal_wait_on_commit_record().)

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/jbd2/commit.c