]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Incremental.c
mdadm: refactor write journal code in Assemble and Incremental
authorSong Liu <songliubraving@fb.com>
Wed, 21 Oct 2015 18:35:14 +0000 (11:35 -0700)
committerNeilBrown <neilb@suse.com>
Thu, 22 Oct 2015 01:19:09 +0000 (12:19 +1100)
commit051f326550f5f2c6e3329878d2c9a5558a5a41ff
tree681e15674cdc2c5b84302680d1a4e9ca5e95cc92
parente80357f8254d8102fcfe2db9252922fbb054640a
mdadm: refactor write journal code in Assemble and Incremental

As discussed, standalone require_journal() in struct superswitch
is not a very good idea. Instead, journal related information
fits well in struct mdinfo.

This patch simplifies journal support code in Assemble and
Incremental as:

- Add journal_device_required and journal_clean to struct mdinfo;
- Remove function require_journal from struct superswitch;
- Update Assemble and Incremental to use journal_device_required
and journal_clean from struct mdinfo (instead of separate var).

Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: NeilBrown <neilb@suse.com>
Assemble.c
Incremental.c
mdadm.h
super1.c