s3: VFS: syncops. Do early return in syncops_linkat()
authorJeremy Allison <jra@samba.org>
Thu, 17 Jun 2021 19:31:19 +0000 (12:31 -0700)
committerNoel Power <npower@samba.org>
Tue, 22 Jun 2021 13:44:34 +0000 (13:44 +0000)
commitd76abb322390609766b6463e64ff83289f8361c0
tree534951671a02b56ff9ecd5502a7ed1e6cb429266
parent5da0d75dd47e2e4e44663fc75b0b7df27b261ee8
s3: VFS: syncops. Do early return in syncops_linkat()

We should always do the operation first, then try the sync.
Failure to sync is not reported as an error, so failure
to create the full_fnames shouldn't fail the operation either.

Makes the code path clearer.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
source3/modules/vfs_syncops.c