jbd2: more simplifications in do_get_write_access()
authorJan Kara <jack@suse.cz>
Mon, 8 Jun 2015 16:44:21 +0000 (12:44 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 8 Jun 2015 16:44:21 +0000 (12:44 -0400)
commit8b00f400eedf91d074f831077003c0d4d9147377
treea48e082d7ab660e99502696fcd36eada541dd192
parentd012aa5965160a39b24a4b41139a322f681cdfd7
jbd2: more simplifications in do_get_write_access()

Check for the simple case of unjournaled buffer first, handle it and
bail out. This allows us to remove one if and unindent the difficult case
by one tab. The result is easier to read.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/transaction.c