]> git.karo-electronics.de Git - karo-tx-linux.git/commit
jbd: Split updating of journal superblock and marking journal empty
authorJan Kara <jack@suse.cz>
Sat, 7 Apr 2012 10:33:03 +0000 (12:33 +0200)
committerJan Kara <jack@suse.cz>
Wed, 11 Apr 2012 16:31:27 +0000 (18:31 +0200)
commitd340c593fc522972390ebf7103255d88ab793d87
tree186fe532994fd18cb342218f443d508a4d2f5b5c
parentd5f384442f1776f3fcabff3a16a2b494c54517e2
jbd: Split updating of journal superblock and marking journal empty

There are three case of updating journal superblock. In the first case, we want
to mark journal as empty (setting s_sequence to 0), in the second case we want
to update log tail, in the third case we want to update s_errno. Split these
cases into separate functions. It makes the code slightly more straightforward
and later patches will make the distinction even more important.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/jbd/checkpoint.c
fs/jbd/commit.c
fs/jbd/journal.c
include/linux/jbd.h
include/trace/events/jbd.h