Commits

Anonymous committed 0943f1d

Fix mount/unmount

  • Participants
  • Parent commits 535b073

Comments (0)

Files changed (1)

File o9fs_vfsops.c

 
 	if ((fp = fd_getfile(p->p_fd, args.fd)) == NULL)
 		return EBADF;
-	fp->f_count++;
 	FREF(fp);
 
 	if (args.verbose)
 	if (mntflags & MNT_FORCE)
 		flags |= FORCECLOSE;
 
-	fp->f_count--;
-	FRELE(fp, p);
 	vrele(vp);
-
 	error = vflush(mp, NULL, flags);
 	if (error) {
 		DBG("error in vflush %d\n", error);