Commit 77a68698 authored by Mike Snitzer's avatar Mike Snitzer

Revert "md: change mddev 'chunk_sectors' from int to unsigned"

This reverts commit 6ffeb1c3.

This change caused unexpected v5.10 raid6 mount failures, see:
https://lkml.org/lkml/2020/12/14/7Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent 2c85ebc5
...@@ -311,7 +311,7 @@ struct mddev { ...@@ -311,7 +311,7 @@ struct mddev {
int external; /* metadata is int external; /* metadata is
* managed externally */ * managed externally */
char metadata_type[17]; /* externally set*/ char metadata_type[17]; /* externally set*/
unsigned int chunk_sectors; int chunk_sectors;
time64_t ctime, utime; time64_t ctime, utime;
int level, layout; int level, layout;
char clevel[16]; char clevel[16];
...@@ -339,7 +339,7 @@ struct mddev { ...@@ -339,7 +339,7 @@ struct mddev {
*/ */
sector_t reshape_position; sector_t reshape_position;
int delta_disks, new_level, new_layout; int delta_disks, new_level, new_layout;
unsigned int new_chunk_sectors; int new_chunk_sectors;
int reshape_backwards; int reshape_backwards;
struct md_thread *thread; /* management thread */ struct md_thread *thread; /* management thread */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment