summaryrefslogtreecommitdiffstats
path: root/drivers/md/md.h
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2020-12-14 12:08:48 -0500
committerMike Snitzer <snitzer@redhat.com>2020-12-14 12:08:48 -0500
commit77a68698ffe0f2f7f7b5fe9dac8fe36f855de3f7 (patch)
treee0ed7fed16fc3b026737363b57da91949d6edae2 /drivers/md/md.h
parent2c85ebc57b3e1817b6ce1a6b703928e113a90442 (diff)
downloadlinux-77a68698ffe0f2f7f7b5fe9dac8fe36f855de3f7.tar.gz
linux-77a68698ffe0f2f7f7b5fe9dac8fe36f855de3f7.tar.bz2
linux-77a68698ffe0f2f7f7b5fe9dac8fe36f855de3f7.zip
Revert "md: change mddev 'chunk_sectors' from int to unsigned"
This reverts commit 6ffeb1c3f8226244c08105bcdbeecc04bad6b89a. This change caused unexpected v5.10 raid6 mount failures, see: https://lkml.org/lkml/2020/12/14/7 Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/md.h')
-rw-r--r--drivers/md/md.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h
index bb645bc3ba6d..2175a5ac4f7c 100644
--- a/drivers/md/md.h
+++ b/drivers/md/md.h
@@ -311,7 +311,7 @@ struct mddev {
int external; /* metadata is
* managed externally */
char metadata_type[17]; /* externally set*/
- unsigned int chunk_sectors;
+ int chunk_sectors;
time64_t ctime, utime;
int level, layout;
char clevel[16];
@@ -339,7 +339,7 @@ struct mddev {
*/
sector_t reshape_position;
int delta_disks, new_level, new_layout;
- unsigned int new_chunk_sectors;
+ int new_chunk_sectors;
int reshape_backwards;
struct md_thread *thread; /* management thread */