diff options
| author | David Howells <[email protected]> | 2021-06-03 09:51:28 +0000 |
|---|---|---|
| committer | David Howells <[email protected]> | 2021-08-25 14:20:25 +0000 |
| commit | 185981958c920dd28e35cba7cda69486c8551781 (patch) | |
| tree | f1e3abf331b9d63d196bc08b1d14eaee7767cd21 /fs/cachefiles/io.c | |
| parent | netfs: Move cookie debug ID to struct netfs_cache_resources (diff) | |
| download | kernel-185981958c920dd28e35cba7cda69486c8551781.tar.gz kernel-185981958c920dd28e35cba7cda69486c8551781.zip | |
cachefiles: Use file_inode() rather than accessing ->f_inode
Use the file_inode() helper rather than accessing ->f_inode directly.
Signed-off-by: David Howells <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
cc: [email protected]
Link: https://lore.kernel.org/r/162431192403.2908479.4590814090994846904.stgit@warthog.procyon.org.uk/
Diffstat (limited to 'fs/cachefiles/io.c')
| -rw-r--r-- | fs/cachefiles/io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cachefiles/io.c b/fs/cachefiles/io.c index ca68bb97ca00..fac2e8e7b533 100644 --- a/fs/cachefiles/io.c +++ b/fs/cachefiles/io.c @@ -70,7 +70,7 @@ static int cachefiles_read(struct netfs_cache_resources *cres, _enter("%pD,%li,%llx,%zx/%llx", file, file_inode(file)->i_ino, start_pos, len, - i_size_read(file->f_inode)); + i_size_read(file_inode(file))); /* If the caller asked us to seek for data before doing the read, then * we should do that now. If we find a gap, we fill it with zeros. @@ -194,7 +194,7 @@ static int cachefiles_write(struct netfs_cache_resources *cres, _enter("%pD,%li,%llx,%zx/%llx", file, file_inode(file)->i_ino, start_pos, len, - i_size_read(file->f_inode)); + i_size_read(file_inode(file))); ki = kzalloc(sizeof(struct cachefiles_kiocb), GFP_KERNEL); if (!ki) |
