diff options
author | Chaitanya Kulkarni <kch@nvidia.com> | 2022-02-02 12:04:44 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2022-02-28 14:45:05 +0300 |
commit | 2caecd62ea5160803b25d96cb1a14ce755c2c259 (patch) | |
tree | e6aee65b3cd522347626a22444bb50bf6e34c47e /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 581f19dd72b9d148ce667b6dcb20d3ef16b9a1cf (diff) | |
download | linux-2caecd62ea5160803b25d96cb1a14ce755c2c259.tar.xz |
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 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions