]> git.baikalelectronics.ru Git - kernel.git/commit
NFSD: Avoid calling fh_drop_write() twice in do_nfsd_create()
authorChuck Lever <chuck.lever@oracle.com>
Mon, 28 Mar 2022 14:16:42 +0000 (10:16 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Fri, 20 May 2022 17:18:24 +0000 (13:18 -0400)
commit7ca089bcb8c7efc40b41efc89df3a4209bbebba3
tree3c2e2da08661ea76e564d044b48389df2a6c581f
parentf575e35659e803a5b579666ac00ce2ce646b5914
NFSD: Avoid calling fh_drop_write() twice in do_nfsd_create()

Clean up: The "out" label already invokes fh_drop_write().

Note that fh_drop_write() is already careful not to invoke
mnt_drop_write() if either it has already been done or there is
nothing to drop. Therefore no change in behavior is expected.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/vfs.c