cleanup of vfs shutdown logic; makes clean unmounts easier (but

needs checking if fp_wd or fp_rd is NULL before use)
This commit is contained in:
Ben Gras
2009-04-29 16:59:18 +00:00
parent b7e23b70e8
commit fd7ef243e4
8 changed files with 107 additions and 49 deletions

View File

@@ -189,8 +189,8 @@ PUBLIC int check_vrefs()
for (rfp=&fproc[0]; rfp < &fproc[NR_PROCS]; rfp++) {
if (rfp->fp_pid == PID_FREE)
continue;
REFVP(rfp->fp_rd);
REFVP(rfp->fp_wd);
if(rfp->fp_rd) REFVP(rfp->fp_rd);
if(rfp->fp_wd) REFVP(rfp->fp_wd);
}
/* Count references from filedescriptors */