jbd2: move more common code into journal_init_common()
authorGeliang Tang <geliangtang@gmail.com>
Thu, 15 Sep 2016 16:02:32 +0000 (12:02 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 15 Sep 2016 16:02:32 +0000 (12:02 -0400)
commitf0c9fd5458bacf7b12a9a579a727dc740cbe047e
treef8fa3663bbb0b44944185ccf0fc09b2799d8ea67
parentbe32197cd6b8c37425ca954e719d236e6117a8ee
jbd2: move more common code into journal_init_common()

There are some repetitive code in jbd2_journal_init_dev() and
jbd2_journal_init_inode(). So this patch moves the common code into
journal_init_common() helper to simplify the code. And fix the coding
style warnings reported by checkpatch.pl by the way.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
fs/jbd2/journal.c