]> git.baikalelectronics.ru Git - kernel.git/commit
jbd2: split updating of journal superblock and marking journal empty
authorJan Kara <jack@suse.cz>
Tue, 13 Mar 2012 19:41:04 +0000 (15:41 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 13 Mar 2012 19:41:04 +0000 (15:41 -0400)
commit27aabb9777c89eecbab3cb13ef03bbe17aab9cba
tree0661b6c83fa9bb681f3aa32264323ce96c264958
parent0a62881f9074e725a17d862f3fdc03a389ad37a7
jbd2: 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>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/jbd2/checkpoint.c
fs/jbd2/commit.c
fs/jbd2/journal.c
include/linux/jbd2.h
include/trace/events/jbd2.h