kernel-ark/fs/jbd2
Theodore Ts'o be1158cc61 jbd2: fold __process_buffer() into jbd2_log_do_checkpoint()
__process_buffer() is only called by jbd2_log_do_checkpoint(), and it
had a very complex locking protocol where it would be called with the
j_list_lock, and sometimes exit with the lock held (if the return code
was 0), or release the lock.

This was confusing both to humans and to smatch (which erronously
complained that the lock was taken twice).

Folding __process_buffer() to the caller allows us to simplify the
control flow, making the resulting function easier to read and reason
about, and dropping the compiled size of fs/jbd2/checkpoint.c by 150
bytes (over 4% of the text size).

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
2014-09-01 21:19:01 -04:00
..
checkpoint.c jbd2: fold __process_buffer() into jbd2_log_do_checkpoint() 2014-09-01 21:19:01 -04:00
commit.c jbd2: fix descriptor block size handling errors with journal_csum 2014-08-28 22:22:29 -04:00
journal.c jbd2: fix descriptor block size handling errors with journal_csum 2014-08-28 22:22:29 -04:00
Kconfig jbd2: remove debug dependency on debug_fs and update Kconfig help text 2013-06-12 23:07:51 -04:00
Makefile
recovery.c jbd2: fix descriptor block size handling errors with journal_csum 2014-08-28 22:22:29 -04:00
revoke.c jbd2: fix descriptor block size handling errors with journal_csum 2014-08-28 22:22:29 -04:00
transaction.c sched: Remove proliferation of wait_on_bit() action functions 2014-07-16 15:10:39 +02:00