[Libsysio-commit] HEAD: libsysio/src inode.c
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2009-08-31 21:46:19
|
Update of /cvsroot/libsysio/libsysio/src In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv28646/src Modified Files: inode.c Log Message: Had left the old pb_prune routine, the recursive list-based implementation, but ifdef'd out. It's just gone, now. Index: inode.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/inode.c,v retrieving revision 1.58 retrieving revision 1.59 diff -u -w -b -B -p -r1.58 -r1.59 --- inode.c 31 Aug 2009 21:38:29 -0000 1.58 +++ inode.c 31 Aug 2009 21:46:09 -0000 1.59 @@ -1082,34 +1082,6 @@ p_remove_aliases(struct mount *mnt, stru return count; } -#if 0 -static size_t -pb_prune(struct mount *mnt, struct pnode_base *pb) -{ - size_t count; - struct pnode_base *nxt, *child; - - PB_LOCK(pb); - count = 0; - nxt = pb->pb_children.lh_first; - while ((child = nxt)) { - nxt = child->pb_sibs.le_next; - count += pb_prune(mnt, child); - } - - if (!count) { - count += p_remove_aliases(mnt, pb); - if (!(pb->pb_aliases.lh_first || pb->pb_children.lh_first)) { - _sysio_pb_gone(pb); - pb = NULL; - } - } - if (pb) - PB_UNLOCK(pb); - return count; -} -#endif - static size_t pb_prune(struct mount *mnt, struct pnode_base *pb) { |