* [PATCH 5/8] nfs_finish_open(): don't open-code file_inode() [not found] <YwFANLruaQpqmPKv@ZenIV> @ 2022-08-20 20:17 ` Al Viro 2022-08-20 20:19 ` [PATCH 7/8] _nfs42_proc_copy(): use ->f_mapping instead of file_inode()->i_mapping Al Viro 1 sibling, 0 replies; 2+ messages in thread From: Al Viro @ 2022-08-20 20:17 UTC (permalink / raw) To: linux-fsdevel; +Cc: linux-nfs Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> --- fs/nfs/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index dbab3caa15ed..bcb2500c49b8 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -2022,7 +2022,7 @@ static int nfs_finish_open(struct nfs_open_context *ctx, err = finish_open(file, dentry, do_open); if (err) goto out; - if (S_ISREG(file->f_path.dentry->d_inode->i_mode)) + if (S_ISREG(file_inode(file)->i_mode)) nfs_file_set_open_context(file, ctx); else err = -EOPENSTALE; -- 2.30.2 ^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 7/8] _nfs42_proc_copy(): use ->f_mapping instead of file_inode()->i_mapping [not found] <YwFANLruaQpqmPKv@ZenIV> 2022-08-20 20:17 ` [PATCH 5/8] nfs_finish_open(): don't open-code file_inode() Al Viro @ 2022-08-20 20:19 ` Al Viro 1 sibling, 0 replies; 2+ messages in thread From: Al Viro @ 2022-08-20 20:19 UTC (permalink / raw) To: linux-fsdevel; +Cc: linux-nfs Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> --- fs/nfs/nfs42proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2 ^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-08-20 20:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <YwFANLruaQpqmPKv@ZenIV>
2022-08-20 20:17 ` [PATCH 5/8] nfs_finish_open(): don't open-code file_inode() Al Viro
2022-08-20 20:19 ` [PATCH 7/8] _nfs42_proc_copy(): use ->f_mapping instead of file_inode()->i_mapping Al Viro
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox