linux-m68k.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 00/18] block: add and use init disk helper
@ 2022-10-05  5:00 Chaitanya Kulkarni
  2022-10-05  5:00 ` [RFC PATCH 01/18] " Chaitanya Kulkarni
                   ` (17 more replies)
  0 siblings, 18 replies; 23+ messages in thread
From: Chaitanya Kulkarni @ 2022-10-05  5:00 UTC (permalink / raw)
  To: ogeert, linux-block, linux-m68k, linux-kernel, drbd-dev, nbd, linux-mtd
  Cc: axboe, philipp.reisner, lars.ellenberg, christoph.boehmwalder,
	efremov, josef, tim, haris.iqbal, jinpu.wang, richard,
	miquel.raynal, vigneshr, kch, mcgrof, hare, damien.lemoal,
	johannes.thumshirn, bvanassche, ming.lei, vincent.fu,
	shinichiro.kawasaki

Hi,

Add and use the helper to initialize the common fields of struct gendisk
such as major, first_minor, minors, disk_name, private_data, and ops.
This initialization is spread all over the block drivers. This avoids
code repetation of inialization code of gendisk in current block drivers
and any future ones.

-ck

Chaitanya Kulkarni (18):
  block: add and use init disk helper
  nfblock: use init disk helper
  amiflop: use init disk helper
  brd: use init disk helper
  drbd: use init disk helper
  floppy: use init disk helper
  loop: use init disk helper
  n64cart: use init disk helper
  nbd: use init disk helper
  pcd: use init disk helper
  pd: use init disk helper
  pf: use init disk helper
  pktcdvd: use init disk helper
  rnbd-clt: use init disk helper
  swim: use init disk helper
  swim3: use init disk helper
  z2ram: use init disk helper
  ubi: use init disk helper

 arch/m68k/emu/nfblock.c        |  8 ++------
 block/genhd.c                  | 13 +++++++++++++
 drivers/block/amiflop.c        |  8 ++------
 drivers/block/ataflop.c        |  8 ++------
 drivers/block/brd.c            |  9 ++-------
 drivers/block/drbd/drbd_main.c |  6 +-----
 drivers/block/floppy.c         |  8 ++------
 drivers/block/loop.c           |  7 ++-----
 drivers/block/n64cart.c        |  4 +---
 drivers/block/nbd.c            |  7 ++-----
 drivers/block/null_blk/main.c  | 12 ++++--------
 drivers/block/paride/pcd.c     |  5 +----
 drivers/block/paride/pd.c      |  8 ++------
 drivers/block/paride/pf.c      |  6 +-----
 drivers/block/pktcdvd.c        |  6 +-----
 drivers/block/rnbd/rnbd-clt.c  |  9 +++------
 drivers/block/swim.c           |  7 ++-----
 drivers/block/swim3.c          |  8 ++------
 drivers/block/z2ram.c          |  5 +----
 drivers/mtd/ubi/block.c        |  6 +-----
 include/linux/blkdev.h         |  5 +++++
 21 files changed, 52 insertions(+), 103 deletions(-)

-- 
2.29.0


^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2022-10-10  7:59 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-05  5:00 [RFC PATCH 00/18] block: add and use init disk helper Chaitanya Kulkarni
2022-10-05  5:00 ` [RFC PATCH 01/18] " Chaitanya Kulkarni
2022-10-10  7:59   ` Christoph Hellwig
2022-10-05  5:00 ` [RFC PATCH 02/18] nfblock: " Chaitanya Kulkarni
2022-10-05  5:00 ` [RFC PATCH 03/18] amiflop: " Chaitanya Kulkarni
2022-10-05  5:00 ` [RFC PATCH 04/18] brd: " Chaitanya Kulkarni
2022-10-05  5:00 ` [RFC PATCH 05/18] drbd: " Chaitanya Kulkarni
2022-10-05 10:09   ` Christoph Böhmwalder
2022-10-05 17:24     ` Chaitanya Kulkarni
2022-10-05  5:00 ` [RFC PATCH 06/18] floppy: " Chaitanya Kulkarni
2022-10-05  5:00 ` [RFC PATCH 07/18] loop: " Chaitanya Kulkarni
2022-10-05  5:00 ` [RFC PATCH 08/18] n64cart: " Chaitanya Kulkarni
2022-10-05  5:00 ` [RFC PATCH 09/18] nbd: " Chaitanya Kulkarni
2022-10-05  5:00 ` [RFC PATCH 10/18] pcd: " Chaitanya Kulkarni
2022-10-05  5:00 ` [RFC PATCH 11/18] pd: " Chaitanya Kulkarni
2022-10-05  5:00 ` [RFC PATCH 12/18] pf: " Chaitanya Kulkarni
2022-10-05  5:00 ` [RFC PATCH 13/18] pktcdvd: " Chaitanya Kulkarni
2022-10-05  5:00 ` [RFC PATCH 14/18] rnbd-clt: " Chaitanya Kulkarni
2022-10-05  5:00 ` [RFC PATCH 15/18] swim: " Chaitanya Kulkarni
2022-10-05  6:54   ` Finn Thain
2022-10-05  5:00 ` [RFC PATCH 16/18] swim3: " Chaitanya Kulkarni
2022-10-05  5:00 ` [RFC PATCH 17/18] z2ram: " Chaitanya Kulkarni
2022-10-05  5:00 ` [RFC PATCH 18/18] ubi: " Chaitanya Kulkarni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).