diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2022-08-20 13:12:02 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2022-09-01 17:45:36 -0400 |
commit | 265a04b076077b3f5a169231e290ad106d3aa2ca (patch) | |
tree | 9015b13e2a214536ede0786b4cdb0b73ec5cdbba | |
parent | ff58105a47ede2e9f3fe6f45e9b1185dcfde7762 (diff) | |
download | lwn-265a04b076077b3f5a169231e290ad106d3aa2ca.tar.gz lwn-265a04b076077b3f5a169231e290ad106d3aa2ca.zip |
_nfs42_proc_copy(): use ->f_mapping instead of file_inode()->i_mapping
Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/nfs/nfs42proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs42proc.c b/fs/nfs/nfs42proc.c index 068c45b3bc1a..542502199005 100644 --- a/fs/nfs/nfs42proc.c +++ b/fs/nfs/nfs42proc.c @@ -336,7 +336,7 @@ static ssize_t _nfs42_proc_copy(struct file *src, return status; } } - status = nfs_filemap_write_and_wait_range(file_inode(src)->i_mapping, + status = nfs_filemap_write_and_wait_range(src->f_mapping, pos_src, pos_src + (loff_t)count - 1); if (status) return status; |