afs_osi_Read(struct osi_file *afile, int offset, void *aptr,
afs_int32 asize)
{
- unsigned int resid;
+ int resid;
afs_int32 code;
AFS_STATCNT(osi_Read);
# endif
#undef SPLVAR
-#define SPLVAR int splvar
+#define SPLVAR
#undef NETPRI
-#define NETPRI splvar=splnet()
+#define NETPRI
#undef USERPRI
-#define USERPRI splx(splvar)
+#define USERPRI
#define osi_procname(procname, size) strncpy(procname, curproc->p_comm, size)
int
osi_TryEvictVCache(struct vcache *avc, int *slept) {
- struct vnode *vp = AFSTOV(avc);
/*
* essentially all we want to do here is check that the
int
osi_VM_FlushVCache(struct vcache *avc, int *slept)
{
- struct vm_object *obj;
struct vnode *vp = AFSTOV(avc);
if (!VI_TRYLOCK(vp)) /* need interlock to check usecount */
int tries, code;
int islocked;
- SPLVAR;
-
vp = AFSTOV(avc);
VI_LOCK(vp);
if (vp->v_iflag & VI_DOOMED) {
VI_UNLOCK(vp);
- USERPRI;
return;
}
VI_UNLOCK(vp);
vn_lock(vp, LK_DOWNGRADE);
else if (!islocked)
VOP_UNLOCK(vp, 0);
- USERPRI;
}
/* Purge VM for a file when its callback is revoked.
int flags = ap->a_cnp->cn_flags;
int lockparent; /* 1 => lockparent flag is set */
int wantparent; /* 1 => wantparent or lockparent flag */
+#ifndef AFS_FBSD80_ENV
struct thread *p = ap->a_cnp->cn_thread;
+#endif
dvp = ap->a_dvp;
if (dvp->v_type != VDIR) {
int error = 0;
struct vcache *vcp;
struct vnode *dvp = ap->a_dvp;
+#ifndef AFS_FBSD80_ENV
struct thread *p = ap->a_cnp->cn_thread;
+#endif
GETNAME();
AFS_GLOCK();
int error = 0;
struct vnode *dvp = ap->a_tdvp;
struct vnode *vp = ap->a_vp;
+#ifndef AFS_FBSD80_ENV
struct thread *p = ap->a_cnp->cn_thread;
+#endif
GETNAME();
if (dvp->v_mount != vp->v_mount) {
struct vnode *tdvp = ap->a_tdvp;
struct vnode *fvp = ap->a_fvp;
struct vnode *fdvp = ap->a_fdvp;
+#ifndef AFS_FBSD80_ENV
struct thread *p = fcnp->cn_thread;
+#endif
/*
* Check for cross-device rename.
struct vattr *vap = ap->a_vap;
int error = 0;
struct vcache *vcp;
+#ifndef AFS_FBSD80_ENV
struct thread *p = ap->a_cnp->cn_thread;
+#end
GETNAME();
#ifdef DIAGNOSTIC
AFS_GUNLOCK();
soshutdown(rx_socket, SHUT_RDWR);
p = pfind(rxk_ListenerPid);
- afs_warn("osi_StopListener: rxk_ListenerPid %lx\n", p);
if (p) {
+ afs_warn("osi_StopListener: rxk_ListenerPid %u\n", rxk_ListenerPid);
psignal(p, SIGUSR1);
PROC_UNLOCK(p);
- }
+ } else
+ afs_warn("osi_StopListener: rxk_Listener not found (pid %u)\n",
+ rxk_ListenerPid);
#ifdef AFS_FBSD70_ENV
{
/* Avoid destroying socket until osi_NetReceive has