Skip to content

Allow bitmaps to be resized.

NeilBrown linux-raid 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest24 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/24md/bitmap: disentangle two different 'pending' flags.drivers/md/bitmap.c drivers/md/bitmap.h+118 -1020 replies
2/24md/bitmap: add new 'space' attribute for bitmaps.drivers/md/bitmap.c drivers/md/md.c drivers/md/md.h+73 -20 replies
3/24md/bitmap: allow a bitmap with no backing storage.drivers/md/bitmap.c drivers/md/md.c+79 -620 replies
4/24md/bitmap: centralise allocation of bitmap file pages.drivers/md/bitmap.c+68 -810 replies
5/24md/bitmap: change *_page_attr() to take a page number, not a page.drivers/md/bitmap.c+26 -290 replies
6/24md/bitmap: move some fields of 'struct bitmap' into a 'storage' substruct.drivers/md/bitmap.c drivers/md/bitmap.h drivers/md/md.c+110 -960 replies
7/24md/bitmap: store bytes in file rather than just in last page.drivers/md/bitmap.c drivers/md/bitmap.h+8 -80 replies
8/24md/bitmap: separate bitmap file allocation to its own function.drivers/md/bitmap.c+67 -460 replies
9/24md/bitmap: move storage allocation from bitmap_load to bitmap_create.drivers/md/bitmap.c+6 -50 replies
10/24md/bitmap: remove bitmap_mask_statedrivers/md/bitmap.c+3 -340 replies
11/24md/bitmap: remove single-bit manipulation on sb->statedrivers/md/bitmap.c+2 -20 replies
12/24md/bitmap: use set_bit, test_bit, etc for operation on bitmap->flags.drivers/md/bitmap.c drivers/md/bitmap.h+24 -280 replies
13/24md/bitmap: convert some spin_lock_irqsave to spin_lock_irqdrivers/md/bitmap.c+14 -180 replies
14/24md/bitmap: remove async freeing of bitmap file.drivers/md/bitmap.c+6 -100 replies
15/24md/bitmap: merge bitmap_file_unmap and bitmap_file_put.drivers/md/bitmap.c+10 -240 replies
16/24md/bitmap: make _page_attr bitops atomic.drivers/md/bitmap.c+23 -320 replies
17/24md/bitmap: make bitmap bitops atomic.drivers/md/bitmap.c+2 -40 replies
18/24md/bitmap: create a 'struct bitmap_counts' substructure of 'struct bitmap'drivers/md/bitmap.c drivers/md/bitmap.h+84 -770 replies
19/24md/bitmap: use DIV_ROUND_UP instead of open-codedrivers/md/bitmap.c drivers/md/bitmap.h+3 -40 replies
20/24md/bitmap: add bitmap_resize function to allow bitmap resizing.drivers/md/bitmap.c drivers/md/bitmap.h+165 -290 replies
21/24md/bitmap: make sure reshape request are reflected in superblock.drivers/md/bitmap.c+3 -00 replies
22/24md: allow array to be resized while bitmap is present.drivers/md/md.c drivers/md/raid1.c drivers/md/raid10.c +1 more+28 -130 replies
23/24md/raid10: resize bitmap when required during reshape.drivers/md/raid10.c+24 -130 replies
24/24md/raid5: Allow reshape while a bitmap is present.drivers/md/raid5.c+3 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [md PATCH 00/24] Allow bitmaps to be resized.

The following series has just been added to my for-next queue and so should be in 3.5.
git://neil.brown.name/md for-next
git://github.com/neilbrown/linux.git md/for-next

It allows md to resize a bitmap on an active array. This means that arrays can now be reshaped without first removing the bitmap. The bitmap is resized in-place.

As always: review and testing would be greatly appreciated.

NeilBrown

---

NeilBrown (24):
md/raid5: Allow reshape while a bitmap is present.
md/raid10: resize bitmap when required during reshape.
md: allow array to be resized while bitmap is present. md/bitmap: make sure reshape request are reflected in superblock. md/bitmap: add bitmap_resize function to allow bitmap resizing. md/bitmap: use DIV_ROUND_UP instead of open-code
md/bitmap: create a 'struct bitmap_counts' substructure of 'struct bitmap' md/bitmap: make bitmap bitops atomic.
md/bitmap: make _page_attr bitops atomic.
md/bitmap: merge bitmap_file_unmap and bitmap_file_put. md/bitmap: remove async freeing of bitmap file.
md/bitmap: convert some spin_lock_irqsave to spin_lock_irq md/bitmap: use set_bit, test_bit, etc for operation on bitmap->flags. md/bitmap: remove single-bit manipulation on sb->state md/bitmap: remove bitmap_mask_state
md/bitmap: move storage allocation from bitmap_load to bitmap_create. md/bitmap: separate bitmap file allocation to its own function. md/bitmap: store bytes in file rather than just in last page. md/bitmap: move some fields of 'struct bitmap' into a 'storage' substruct. md/bitmap: change *_page_attr() to take a page number, not a page. md/bitmap: centralise allocation of bitmap file pages. md/bitmap: allow a bitmap with no backing storage.
md/bitmap: add new 'space' attribute for bitmaps.
md/bitmap: disentangle two different 'pending' flags.

 drivers/md/bitmap.c | 1089 +++++++++++++++++++++++++++++----------------------
 drivers/md/bitmap.h |   58 ++-
 drivers/md/md.c     |   53 ++
 drivers/md/md.h     |    3 
 drivers/md/raid1.c  |   11 -
 drivers/md/raid10.c |   47 +-
 drivers/md/raid5.c  |   20 +
 7 files changed, 754 insertions(+), 527 deletions(-)
Signature · 1 line
Signature