Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14733
b: refs/heads/master
c: b2a2703
h: refs/heads/master
i:
  14731: 6f05883
v: v3
  • Loading branch information
NeilBrown authored and Linus Torvalds committed Nov 28, 2005
1 parent e0fe7b5 commit a10d198
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b5ab28a3b81381103b686ff6b9d2f5fbb944bc8c
refs/heads/master: b2a2703c282ce77d189a250f58039daac1da3314
4 changes: 3 additions & 1 deletion trunk/drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,6 @@ static int super_1_validate(mddev_t *mddev, mdk_rdev_t *rdev)
mddev->size = le64_to_cpu(sb->size)/2;
mddev->events = le64_to_cpu(sb->events);
mddev->bitmap_offset = 0;
mddev->default_bitmap_offset = 0;
mddev->default_bitmap_offset = 1024;

mddev->recovery_cp = le64_to_cpu(sb->resync_offset);
Expand Down Expand Up @@ -2932,6 +2931,9 @@ static int set_array_info(mddev_t * mddev, mdu_array_info_t *info)

mddev->sb_dirty = 1;

mddev->default_bitmap_offset = MD_SB_BYTES >> 9;
mddev->bitmap_offset = 0;

/*
* Generate a 128 bit UUID
*/
Expand Down

0 comments on commit a10d198

Please sign in to comment.