Home
last modified time | relevance | path

Searched hist:"2 caecd62" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/nvme/target/
H A Dio-cmd-file.c2caecd62 Wed Feb 02 03:04:44 CST 2022 Chaitanya Kulkarni <kch@nvidia.com> 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>
H A Dnvmet.h2caecd62 Wed Feb 02 03:04:44 CST 2022 Chaitanya Kulkarni <kch@nvidia.com> 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>