[Libsysio-commit] HEAD: libsysio/src inode.c
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2009-08-04 05:46:33
|
Update of /cvsroot/libsysio/libsysio/src In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv9719/src Modified Files: inode.c Log Message: Altered PB_SET_ASSOC to take a reference on each association ad drop one on disassociates. This to save the effort, everywhere it's used, of doing the same thing. Tracked down everywhere it's used and got rid of all the I_REF logic. Index: inode.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/inode.c,v retrieving revision 1.55 retrieving revision 1.56 diff -u -w -b -B -p -r1.55 -r1.56 --- inode.c 28 Jan 2009 16:13:19 -0000 1.55 +++ inode.c 4 Aug 2009 05:46:24 -0000 1.56 @@ -513,8 +513,6 @@ _sysio_pb_new(struct qstr *name, struct name = &noname; PB_INIT(pb, name, parent); PB_SET_ASSOC(pb, ino); - if (ino) - I_REF(ino); PB_LOCK(pb); if (pb->pb_key.pbk_parent) { @@ -597,7 +595,6 @@ _sysio_pb_gone(struct pnode_base *pb) free(pb); if (ino) { - I_RELE(ino); if (!(ino->i_ref || ino->i_immune || I_ISASSOC(ino))) _sysio_i_gone(ino); else @@ -898,7 +895,6 @@ _sysio_p_validate(struct pnode *pno, str * Make valid. */ PB_SET_ASSOC(pno->p_base, ino); - I_REF(pno->p_base->pb_ino); } else if (pno->p_base->pb_ino != ino) { /* * Path resolves to a different inode, now. The |