summaryrefslogtreecommitdiffstats
path: root/drivers/nvme/target/io-cmd-bdev.c
diff options
context:
space:
mode:
authorChaitanya Kulkarni <kch@nvidia.com>2022-02-02 10:04:44 +0100
committerChristoph Hellwig <hch@lst.de>2022-02-28 12:45:05 +0100
commit2caecd62ea5160803b25d96cb1a14ce755c2c259 (patch)
treee6aee65b3cd522347626a22444bb50bf6e34c47e /drivers/nvme/target/io-cmd-bdev.c
parentnvme-fabrics: remove unnecessary braces for case (diff)
downloadlinux-2caecd62ea5160803b25d96cb1a14ce755c2c259.tar.xz
linux-2caecd62ea5160803b25d96cb1a14ce755c2c259.zip
nvmet: use i_size_read() to set size for file-ns
Instead of calling vfs_getattr() use i_size_read() to read the size of file so we can read the size of not only file type but also block type with one call. This is needed to implement buffered_io support for the NVMeOF block device backend. We also change return type of function nvmet_file_ns_revalidate() from int to void, since this function does not return any meaning value. Signed-off-by: Chaitanya Kulkarni <kch@nvidia.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/target/io-cmd-bdev.c')
0 files changed, 0 insertions, 0 deletions