diff options
| -rw-r--r-- | drivers/nvme/host/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index 82e23c867e42..a370f702fceb 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c | |||
| @@ -1680,7 +1680,7 @@ static int nvme_alloc_host_mem(struct nvme_dev *dev, u64 min, u64 preferred) | |||
| 1680 | u32 chunk_size; | 1680 | u32 chunk_size; |
| 1681 | 1681 | ||
| 1682 | /* start big and work our way down */ | 1682 | /* start big and work our way down */ |
| 1683 | for (chunk_size = min_t(u64, preferred, PAGE_SIZE << MAX_ORDER); | 1683 | for (chunk_size = min_t(u64, preferred, PAGE_SIZE * MAX_ORDER_NR_PAGES); |
| 1684 | chunk_size >= PAGE_SIZE * 2; | 1684 | chunk_size >= PAGE_SIZE * 2; |
| 1685 | chunk_size /= 2) { | 1685 | chunk_size /= 2) { |
| 1686 | if (!__nvme_alloc_host_mem(dev, preferred, chunk_size)) { | 1686 | if (!__nvme_alloc_host_mem(dev, preferred, chunk_size)) { |
