]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
jbd2: simplify code flow in do_get_write_access()
authorJan Kara <jack@suse.cz>
Mon, 8 Jun 2015 16:39:07 +0000 (12:39 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 8 Jun 2015 16:39:07 +0000 (12:39 -0400)
commitee57aba159a5c329dc78c181a3ae0549e59f0925
tree68c77867c84de451aefcc518463649b924055380
parentb4ab9e29820bf2e8842281a6b5e645e59c9992a5
jbd2: simplify code flow in do_get_write_access()

needs_copy is set only in one place in do_get_write_access(), just move
the frozen buffer copying into that place and factor it out to a
separate function to make do_get_write_access() slightly more readable.

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