IRIX code cleanup

Fixes a few small errors in IRIX-specific code sections

Change-Id: I83e0ca1510eb2d122b9b001f5793f63dabc6ddf1
Reviewed-on: http://gerrit.openafs.org/2154
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Chaz Chandler <clc31@inbox.com>
Tested-by: Chaz Chandler <clc31@inbox.com>
This commit is contained in:
Chaz Chandler 2010-06-14 00:18:29 -04:00 committed by Derrick Brashear
parent 10ada52c26
commit 7759e83795
2 changed files with 4 additions and 1 deletions

View File

@ -15,6 +15,7 @@
int int
osi_TryEvictVCache(struct vcache *avc, int *slept) { osi_TryEvictVCache(struct vcache *avc, int *slept) {
int code;
if (!VREFCOUNT_GT(avc,0) if (!VREFCOUNT_GT(avc,0)
&& avc->opens == 0 && (avc->f.states & CUnlinkedDel) == 0) { && avc->opens == 0 && (avc->f.states & CUnlinkedDel) == 0) {
code = afs_FlushVCache(avc, slept); code = afs_FlushVCache(avc, slept);
@ -24,6 +25,8 @@ osi_TryEvictVCache(struct vcache *avc, int *slept) {
return 0; return 0;
} }
extern char *makesname();
struct vcache * struct vcache *
osi_NewVnode(void) { osi_NewVnode(void) {
struct vcache *avc; struct vcache *avc;
@ -88,7 +91,6 @@ osi_PostPopulateVCache(struct vcache *avc) {
AFS_VN_INIT_BUF_LOCK(&(avc->v)); AFS_VN_INIT_BUF_LOCK(&(avc->v));
#endif #endif
avc->v.v_type = afs_globalVFS;
vSetType(avc, VREG); vSetType(avc, VREG);
VN_SET_DPAGES(&(avc->v), (struct pfdat *)NULL); VN_SET_DPAGES(&(avc->v), (struct pfdat *)NULL);

View File

@ -112,6 +112,7 @@ kern_return_t DiskArbDiskAppearedWithMountpointPing_auto(char *, unsigned int,
#endif /* MOUNT_AFS */ #endif /* MOUNT_AFS */
#ifdef AFS_SGI65_ENV #ifdef AFS_SGI65_ENV
# include <sched.h>
# define SET_RTPRI(P) { \ # define SET_RTPRI(P) { \
struct sched_param sp; \ struct sched_param sp; \
sp.sched_priority = P; \ sp.sched_priority = P; \