linux-nvme.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Small cleanups
@ 2019-10-20 23:42 Damien Le Moal
  2019-10-20 23:42 ` [PATCH 1/2] nvme: Cleanup nvme_block_nr() Damien Le Moal
  2019-10-20 23:42 ` [PATCH 2/2] nvme: Introduce nvme_block_sect() Damien Le Moal
  0 siblings, 2 replies; 5+ messages in thread
From: Damien Le Moal @ 2019-10-20 23:42 UTC (permalink / raw)
  To: linux-nvme, Christoph Hellwig, Keith Busch, Sagi Grimberg,
	linux-block, Jens Axboe

This is series is a couple of cleanup patches. The first one cleans up
the helper function nvme_block_nr() using SECTOR_SHIFT instead of the
hard coded value 9. The second patch introduces the nvme_block_sect()
helper to convert a device block number into a 512B sector value.

Please consider this series for kernel 5.5.

Damien Le Moal (2):
  nvme: Cleanup nvme_block_nr()
  nvme: Introduce nvme_block_sect()

 drivers/nvme/host/core.c | 14 +++++++-------
 drivers/nvme/host/nvme.h | 13 ++++++++++++-
 2 files changed, 19 insertions(+), 8 deletions(-)

-- 
2.21.0


_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme

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

end of thread, other threads:[~2019-10-21  2:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-20 23:42 [PATCH 0/2] Small cleanups Damien Le Moal
2019-10-20 23:42 ` [PATCH 1/2] nvme: Cleanup nvme_block_nr() Damien Le Moal
2019-10-21  2:13   ` Bart Van Assche
2019-10-20 23:42 ` [PATCH 2/2] nvme: Introduce nvme_block_sect() Damien Le Moal
2019-10-21  2:14   ` Bart Van Assche

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).