Skip to content

Commit cdc2ae6

Browse files
Andre Nollneilbrown
authored andcommitted
md: fix some comments.
1/ Raid5 has learned to take over also raid4 and raid6 arrays. 2/ new_chunk in mdp_superblock_1 is in sectors, not bytes. Signed-off-by: NeilBrown <neilb@suse.de>
1 parent 0ba459d commit cdc2ae6

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

drivers/md/raid5.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5231,8 +5231,6 @@ static void *raid5_takeover(mddev_t *mddev)
52315231
* raid1 - if there are two drives. We need to know the chunk size
52325232
* raid4 - trivial - just use a raid4 layout.
52335233
* raid6 - Providing it is a *_6 layout
5234-
*
5235-
* For now, just do raid1
52365234
*/
52375235

52385236
if (mddev->level == 1)

include/linux/raid/md_p.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ struct mdp_superblock_1 {
232232
__le64 reshape_position; /* next address in array-space for reshape */
233233
__le32 delta_disks; /* change in number of raid_disks */
234234
__le32 new_layout; /* new layout */
235-
__le32 new_chunk; /* new chunk size (bytes) */
235+
__le32 new_chunk; /* new chunk size (512byte sectors) */
236236
__u8 pad1[128-124]; /* set to 0 when written */
237237

238238
/* constant this-device information - 64 bytes */

0 commit comments

Comments
 (0)