Xue jiufei
2015-Apr-14 03:00 UTC
[Ocfs2-devel] A question about function jbd2__journal_restart()
Hi all, I have a question about function jbd2__journal_restart(). If we call this function when there's not more credits, it may commit the handle's transaction and start another one. So a handle can be attached to 2 transaction and can not ensure the consistency. It is the caller's responsibility to keep things consistently before call jbd2__journal_restart(), right? Thanks very much.
Jan Kara
2015-Apr-14 08:43 UTC
[Ocfs2-devel] A question about function jbd2__journal_restart()
Hello, On Tue 14-04-15 11:00:09, Xue jiufei wrote:> I have a question about function jbd2__journal_restart(). > If we call this function when there's not more credits, > it may commit the handle's transaction and start another one. > So a handle can be attached to 2 transaction and can not ensure the > consistency. It is the caller's responsibility to keep things consistently > before call jbd2__journal_restart(), right?Correct. Honza -- Jan Kara <jack at suse.cz> SUSE Labs, CR