]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md: separate flags for superblock changes
authorShaohua Li <shli@fb.com>
Thu, 8 Dec 2016 23:48:19 +0000 (15:48 -0800)
committerShaohua Li <shli@fb.com>
Fri, 9 Dec 2016 06:01:47 +0000 (22:01 -0800)
commit2953079c692da067aeb6345659875b97378f9b0a
tree06bec98f71114629966da122360fd38a6f8ec422
parent82a301cb0ea2df8a5c88213094a01660067c7fb4
md: separate flags for superblock changes

The mddev->flags are used for different purposes. There are a lot of
places we check/change the flags without masking unrelated flags, we
could check/change unrelated flags. These usage are most for superblock
write, so spearate superblock related flags. This should make the code
clearer and also fix real bugs.

Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/bitmap.c
drivers/md/dm-raid.c
drivers/md/md.c
drivers/md/md.h
drivers/md/multipath.c
drivers/md/raid1.c
drivers/md/raid10.c
drivers/md/raid5-cache.c
drivers/md/raid5.c