]> Gentwo Git Trees - linux/.git/commit
nfsd: drop fh_update() from S_IFDIR branch of nfsd_create_locked()
authorNeilBrown <neilb@suse.de>
Wed, 26 Feb 2025 06:18:32 +0000 (17:18 +1100)
committerChristian Brauner <brauner@kernel.org>
Wed, 26 Feb 2025 08:55:18 +0000 (09:55 +0100)
commit4cf006b739958942ee8b59b22c057681c65a9be6
tree95940b59924006fe8011a77e961f8b8c375cc383
parent3ff6c8707c9a0116d00982851ec1216a42053ace
nfsd: drop fh_update() from S_IFDIR branch of nfsd_create_locked()

nfsd_create_locked() doesn't need to explicitly call fh_update().
On success (which is the only time that fh_update() matters at all),
nfsd_create_setattr() will be called and it will call fh_update().

This extra call is not harmful, but is not necessary.

Signed-off-by: NeilBrown <neilb@suse.de>
Link: https://lore.kernel.org/r/20250226062135.2043651-3-neilb@suse.de
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/nfsd/vfs.c