Commit 265a04b0 authored by Al Viro's avatar Al Viro

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

Reviewed-by: default avatarChristian Brauner (Microsoft) <brauner@kernel.org>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent ff58105a
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment