[PATCH RFC 0/4] md/md-bitmap: support to build md-bitmap as kernel module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Yu Kuai <yukuai3@xxxxxxxxxx>

Now that all implementations are internal, it's sensible to build it as
kernel module now.

Currently, if md-bitmap is build as module and the module is not loaded,
creating new array will try to load the module, regardless that bitmap
is used or not. There are still lots of cleanups to prevent
deferencing "mddev->bitmap_ops" for the array without bitmap.

Yu Kuai (4):
  md/md-bitmap: remove the parameter 'init' for bitmap_ops->resize()
  md/md-bitmap: merge md_bitmap_group into bitmap_operations
  md: export some helpers
  md/md-bitmap: support to build md-bitmap as kernel module

 drivers/md/Kconfig      |  15 +++++
 drivers/md/Makefile     |   4 +-
 drivers/md/dm-raid.c    |   2 +-
 drivers/md/md-bitmap.c  |  38 +++++++++++--
 drivers/md/md-bitmap.h  |  13 +++--
 drivers/md/md-cluster.c |   2 +-
 drivers/md/md.c         | 118 +++++++++++++++++++++++++++++++++-------
 drivers/md/md.h         |  12 +++-
 drivers/md/raid1.c      |   2 +-
 drivers/md/raid10.c     |   8 +--
 drivers/md/raid5.c      |   2 +-
 11 files changed, 172 insertions(+), 44 deletions(-)

-- 
2.39.2





[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux