discon needs static_inline macro

don't use static inline keywords in common code.

Change-Id: I29cbe312e27c8fb75d2d07f720789a4a5b900fa5
Reviewed-on: http://gerrit.openafs.org/2510
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Derrick Brashear 2010-08-04 08:42:16 -04:00
parent b82ac032a6
commit 9bfae6b76c

View File

@ -50,7 +50,7 @@ extern void afs_DisconDiscardAll(afs_ucred_t *);
#define AFS_DISCON_UNLOCK() ReleaseReadLock(&afs_discon_lock) #define AFS_DISCON_UNLOCK() ReleaseReadLock(&afs_discon_lock)
/* Call with avc lock held */ /* Call with avc lock held */
static inline void afs_DisconAddDirty(struct vcache *avc, int operation, int lock) { static_inline void afs_DisconAddDirty(struct vcache *avc, int operation, int lock) {
if (!avc->f.ddirty_flags) { if (!avc->f.ddirty_flags) {
if (lock) if (lock)
ObtainWriteLock(&afs_xvcache, 702); ObtainWriteLock(&afs_xvcache, 702);
@ -65,7 +65,7 @@ static inline void afs_DisconAddDirty(struct vcache *avc, int operation, int loc
} }
/* Call with avc lock held */ /* Call with avc lock held */
static inline void afs_DisconRemoveDirty(struct vcache *avc) { static_inline void afs_DisconRemoveDirty(struct vcache *avc) {
ObtainWriteLock(&afs_disconDirtyLock, 704); ObtainWriteLock(&afs_disconDirtyLock, 704);
QRemove(&avc->dirtyq); QRemove(&avc->dirtyq);
ReleaseWriteLock(&afs_disconDirtyLock); ReleaseWriteLock(&afs_disconDirtyLock);