Skip to content

Commit

Permalink
Revert "md: change mddev 'chunk_sectors' from int to unsigned"
Browse files Browse the repository at this point in the history
This reverts commit 6ffeb1c.

It causes problems :(

Reported-by: Dave Jones <davej@codemonkey.org.uk>
Reported-by: Mike Snitzer <snitzer@redhat.com>
Cc: Song Liu <songliubraving@fb.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Linus Torvalds <torvalds@linux-foundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Greg Kroah-Hartman committed Dec 14, 2020
1 parent 2c85ebc commit 859f703
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/md/md.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit 859f703

Please sign in to comment.