vutil use lockfile mutex macros for lockfile mutex

we have macroes; let's use them. makes later changes easier.

Change-Id: If128930f659c34592c27503a02d64b67d7f60a84
Reviewed-on: http://gerrit.openafs.org/2996
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Rod Widdowson <rdw@steadingsoftware.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Derrick Brashear 2010-10-15 16:27:55 -04:00
parent 787137104b
commit 12570db7c9

View File

@ -1087,9 +1087,7 @@ _VUnlockFd(int fd, afs_uint32 offset)
void void
VLockFileReinit(struct VLockFile *lf) VLockFileReinit(struct VLockFile *lf)
{ {
#ifdef AFS_PTHREAD_ENV AFS_LF_LOCK(lf);
assert(pthread_mutex_lock(&lf->mutex) == 0);
#endif /* AFS_PTHREAD_ENV */
if (lf->fd != INVALID_FD) { if (lf->fd != INVALID_FD) {
_VCloseFd(lf->fd); _VCloseFd(lf->fd);
@ -1098,9 +1096,7 @@ VLockFileReinit(struct VLockFile *lf)
lf->refcount = 0; lf->refcount = 0;
#ifdef AFS_PTHREAD_ENV AFS_LF_UNLOCK(lf);
assert(pthread_mutex_unlock(&lf->mutex) == 0);
#endif /* AFS_PTHREAD_ENV */
} }
/** /**