diff options
author | 2022-02-02 01:04:44 -0800 | |
---|---|---|
committer | 2022-02-28 13:45:05 +0200 | |
commit | 2caecd62ea5160803b25d96cb1a14ce755c2c259 (patch) | |
tree | e6aee65b3cd522347626a22444bb50bf6e34c47e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | nvme-fabrics: remove unnecessary braces for case (diff) | |
download | linux-dev-2caecd62ea5160803b25d96cb1a14ce755c2c259.tar.xz linux-dev-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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions