nfs: use lock_two_nondirectories()
authorNeilBrown <neil@brown.name>
Sun, 8 Jun 2025 22:15:17 +0000 (08:15 +1000)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 14 Jul 2025 22:20:02 +0000 (15:20 -0700)
commitc1b0b9d79fdf8a86451eac914fe6f5cf39bbfc5f
tree86766ed3dfe897431f5e873f993739f134cbb8be
parent4b5427414749233fb2315a89c9fa64328cf5ec03
nfs: use lock_two_nondirectories()

Rather than open-coding this function call it to make intention clear
and to use "correct" nesting levels (parent and child are for
directories).

This is purely cosmetic with no expected change in behaviour.

Signed-off-by: NeilBrown <neil@brown.name>
Link: https://lore.kernel.org/r/174942091741.608730.3327223511347232829@noble.neil.brown.name
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4file.c