]> git.baikalelectronics.ru Git - kernel.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>
Tue, 15 May 2012 21:34:36 +0000 (23:34 +0200)
commit942961b3987ad44af69c692707046aa98c151d02
treed2fa043f74939d049d6934aea6ab7b1c272be8a5
parentb73f271773689bb38e0907ddd69f206274786285
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