diff options
author | Chaitanya Kulkarni <[email protected]> | 2022-02-02 01:04:44 -0800 |
---|---|---|
committer | Christoph Hellwig <[email protected]> | 2022-02-28 13:45:05 +0200 |
commit | 2caecd62ea5160803b25d96cb1a14ce755c2c259 (patch) | |
tree | e6aee65b3cd522347626a22444bb50bf6e34c47e /net/lapb/lapb_subr.c | |
parent | 581f19dd72b9d148ce667b6dcb20d3ef16b9a1cf (diff) |
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 <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions