mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
md: merge mddev faillast_dev into mddev_flags
There is not need to use a separate field in struct mddev, there are no functional changes. Link: https://lore.kernel.org/linux-raid/20260114171241.3043364-4-yukuai@fnnas.com Signed-off-by: Yu Kuai <yukuai@fnnas.com> Reviewed-by: Li Nan <linan122@huawei.com>
This commit is contained in:
@@ -341,6 +341,7 @@ struct md_cluster_operations;
|
||||
* @MD_BROKEN: This is used to stop writes and mark array as failed.
|
||||
* @MD_DELETED: This device is being deleted
|
||||
* @MD_HAS_SUPERBLOCK: There is persistence sb in member disks.
|
||||
* @MD_FAILLAST_DEV: Allow last rdev to be removed.
|
||||
*
|
||||
* change UNSUPPORTED_MDDEV_FLAGS for each array type if new flag is added
|
||||
*/
|
||||
@@ -358,6 +359,7 @@ enum mddev_flags {
|
||||
MD_DO_DELETE,
|
||||
MD_DELETED,
|
||||
MD_HAS_SUPERBLOCK,
|
||||
MD_FAILLAST_DEV,
|
||||
};
|
||||
|
||||
enum mddev_sb_flags {
|
||||
@@ -625,7 +627,6 @@ struct mddev {
|
||||
/* The sequence number for sync thread */
|
||||
atomic_t sync_seq;
|
||||
|
||||
bool fail_last_dev:1;
|
||||
bool serialize_policy:1;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user