_nfs42_proc_copy(): use ->f_mapping instead of file_inode()->i_mapping

Reviewed-by: Christian Brauner (Microsoft) <[email protected]>
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
Al Viro committed 2022-09-01 17:45:36 -04:00
1 parent ff58105a47
commit 265a04b076
1 file changed
+1 -1
+1 -1
View File
@@ -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;