]> git.baikalelectronics.ru Git - kernel.git/commit
jbd2: optimize jbd2_journal_force_commit
authorDmitry Monakhov <dmonakhov@openvz.org>
Thu, 13 Jun 2013 02:24:07 +0000 (22:24 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 13 Jun 2013 02:24:07 +0000 (22:24 -0400)
commit57369d9f845af014daeafc73278114258b20c685
tree9d040520569d8943c33b29e310d5f6e6ccb7a7c1
parent3b1d7d0e87a13f6cbde4dbfebc8618fe1c276f8f
jbd2: optimize jbd2_journal_force_commit

Current implementation of jbd2_journal_force_commit() is suboptimal because
result in empty and useless commits. But callers just want to force and wait
any unfinished commits. We already have jbd2_journal_force_commit_nested()
which does exactly what we want, except we are guaranteed that we do not hold
journal transaction open.

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/jbd2/journal.c
fs/jbd2/transaction.c
include/linux/jbd2.h