]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nfs/localio: remove extra indirect nfs_to call to check {read,write}_iter
authorMike Snitzer <snitzer@kernel.org>
Thu, 3 Oct 2024 19:35:03 +0000 (15:35 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2025 14:35:43 +0000 (16:35 +0200)
commitb0bf81e05b7aed44a9f1a5a09eca2e671bcff0d5
treecdcbff79bdb866da440adfe025f9b46da62ba284
parent3f9b5dfbc444cb7a8ce68254b348eed6d73c5bde
nfs/localio: remove extra indirect nfs_to call to check {read,write}_iter

[ Upstream commit 0978e5b85fc0867f53c5f4e5b7d2a5536a623e16 ]

Push the read_iter and write_iter availability checks down to
nfs_do_local_read and nfs_do_local_write respectively.

This eliminates a redundant nfs_to->nfsd_file_file() call.

Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Stable-dep-of: 992203a1fba5 ("nfs/localio: restore creds before releasing pageio data")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/localio.c