]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9858d2a647944e388bb35c1cb405cfd601239da1
treed6493909e2c496b6b9deb0d038ec42a9ddcb8fe3
parent12ae84d0df4133498ffdaef98c9f3af8c35fae21
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