nvme-core: replace ctrl page size with a macro
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Fri, 17 Jul 2020 00:51:37 +0000 (17:51 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 29 Jul 2020 05:45:18 +0000 (07:45 +0200)
commit6c3c05b087ada8947cd31895f67e433070446234
treed6493909e2c496b6b9deb0d038ec42a9ddcb8fe3
parent5887450b69e72d4b472a7d049773f6a01bc24cd7
nvme-core: replace ctrl page size with a macro

Saving the nvme controller's page size was from a time when the driver
tried to use different sized pages, but this value is always set to
a constant, and has been this way for some time. Remove the 'page_size'
field and replace its usage with the constant value.

This also lets the compiler make some micro-optimizations in the io
path, and that's always a good thing.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h
drivers/nvme/host/pci.c