[Libsysio-commit] HEAD: libsysio/src ioctx.c
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2007-05-14 15:51:59
|
Update of /cvsroot/libsysio/libsysio/src In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv17885 Modified Files: ioctx.c Log Message: The ioctx_pno field has been removed until we are ready to, at least, force a recompile of existing drivers. Right now, we need to be able to use them unaltered for the tracing project. Index: ioctx.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/ioctx.c,v retrieving revision 1.25 retrieving revision 1.26 diff -u -w -b -B -p -r1.25 -r1.26 --- ioctx.c 30 Apr 2007 16:52:20 -0000 1.25 +++ ioctx.c 14 May 2007 15:51:55 -0000 1.26 @@ -114,7 +114,11 @@ _sysio_ioctx_new(struct pnode *pno, if (!ioctx) return NULL; +#ifdef not_yet P_REF(pno); +#else + I_REF(pno->p_base->pb_ino); +#endif IOCTX_INIT(ioctx, 0, @@ -184,8 +188,13 @@ _sysio_ioctx_done(struct ioctx *ioctx) if (ioctx->ioctx_done) return 1; +#ifdef not_yet if (!PNOP_IODONE(ioctx->ioctx_pno, ioctx)) return 0; +#else + if ((*ioctx->ioctx_ino->i_ops.inop_iodone)(ioctx)) + return 0; +#endif ioctx->ioctx_done = 1; return 1; } @@ -264,6 +273,10 @@ _sysio_ioctx_complete(struct ioctx *ioct if (ioctx->ioctx_fast) return; +#ifdef not_yet P_RELE(ioctx->ioctx_pno); +#else + I_RELE(ioctx->ioctx_ino); +#endif free(ioctx); } |