View | Details | Raw Unified | Return to bug 70096
Collapse All | Expand All

(-)msdosfs_fat.c Wed Jun 16 11:15:41 2004 (-2 / +3 lines)
Lines 434-441 Link Here
434
                       for (cn = 0; cn < pmp->pm_maxcluster; cn += N_INUSEBITS)
434
                       for (cn = 0; cn < pmp->pm_maxcluster; cn += N_INUSEBITS)
435
                               if (pmp->pm_inusemap[cn / N_INUSEBITS] != (u_int)-1)
435
                               if (pmp->pm_inusemap[cn / N_INUSEBITS] != (u_int)-1)
436
                                       break;
436
                                       break;
437
                       pmp->pm_nxtfree = cn
437
                       pmp->pm_nxtfree = (cn < pmp->pm_maxcluster)?
438
                + ffs(pmp->pm_inusemap[cn / N_INUSEBITS]^(u_int)-1) - 1;
438
                       (cn + ffs(pmp->pm_inusemap[cn / N_INUSEBITS]^(u_int)-1) - 1)
439
                       :0;
439
               }
440
               }
440
               if (bread(pmp->pm_devvp, pmp->pm_fsinfo, fsi_size(pmp),
441
               if (bread(pmp->pm_devvp, pmp->pm_fsinfo, fsi_size(pmp),
441
                   NOCRED, &bpn) != 0) {
442
                   NOCRED, &bpn) != 0) {

Return to bug 70096