summaryrefslogtreecommitdiff
path: root/drivers/nvme/host
diff options
context:
space:
mode:
authorSagi Grimberg <sagi@grimberg.me>2019-04-24 11:43:23 -0700
committerChristoph Hellwig <hch@lst.de>2019-04-25 16:51:19 +0200
commit525ec495e021068aa8635a0e18ff60695f5b1f4f (patch)
tree3d18692f443f67dfe4aeef38f5d3608b2a28f92e /drivers/nvme/host
parenta5dffbb66d250a7ef07e27a2e75b8d9d7af2ab41 (diff)
nvmet-file: clamp-down file namespace lba_shift
When the backing file is a tempfile for example, the inode i_blkbits can be 1M in size which causes problems for hosts to support as the disk block size. Instead, expose the minimum between i_blkbits and 12 (4K sector size). Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by:- Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/host')
0 files changed, 0 insertions, 0 deletions