Message ID | 20230915213254.2724586-11-mcgrof@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | bdev: LBS devices support to coexist with buffer-heads | expand |
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index c1f9d8e3ea93..724d3c342344 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -1894,9 +1894,6 @@ static bool nvme_lba_shift_supported(struct nvme_ns *ns) if (ns->lba_shift <= PAGE_SHIFT) return true; - if (IS_ENABLED(CONFIG_BUFFER_HEAD)) - return false; - if (ns->lba_shift <= NVME_MAX_SHIFT_SUPPORTED) return true;
Now that the block device cache allows LBS, and we have buffered-io support, and we support both buffer-heads and iomap aops on the block device cache through the inode dynamically, enable support for LBA formats > PAGE_SIZE. Signed-off-by: Luis Chamberlain <mcgrof@kernel.org> --- drivers/nvme/host/core.c | 3 --- 1 file changed, 3 deletions(-)