summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs42proc.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2022-08-20 19:12:02 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2022-09-01 23:45:36 +0200
commit265a04b076077b3f5a169231e290ad106d3aa2ca (patch)
tree9015b13e2a214536ede0786b4cdb0b73ec5cdbba /fs/nfs/nfs42proc.c
parentdma_buf: no need to bother with file_inode()->i_mapping (diff)
downloadlinux-265a04b076077b3f5a169231e290ad106d3aa2ca.tar.xz
linux-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>
Diffstat (limited to 'fs/nfs/nfs42proc.c')
-rw-r--r--fs/nfs/nfs42proc.c2
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;