Lines Matching defs:sup
482 SEGUSE *sup;
504 LFS_SEGENTRY(sup, fs, snn[i], bp);
505 if (sup->su_flags & SEGUSE_ACTIVE
506 || !(sup->su_flags & SEGUSE_DIRTY))
532 LFS_SEGENTRY(sup, fs, snn[i], bp);
533 if (sup->su_flags & SEGUSE_ACTIVE
534 || !(sup->su_flags & SEGUSE_DIRTY))
760 segselect_greedy(struct lfs *fs, int sn, SEGUSE *sup)
762 return lfs_sb_getssize(fs) - sup->su_nbytes;
766 segselect_cb_rosenblum(struct lfs *fs, int sn, SEGUSE *sup, long age)
770 benefit = (int64_t)lfs_sb_getssize(fs) - sup->su_nbytes -
771 (sup->su_nsums + 1) * lfs_sb_getfsize(fs);
772 if (sup->su_flags & SEGUSE_SUPERBLOCK)
780 cost = lfs_sb_getssize(fs) + sup->su_nbytes;
785 segselect_cb_time(struct lfs *fs, int sn, SEGUSE *sup)
789 age = time_second - sup->su_lastmod;
792 return segselect_cb_rosenblum(fs, sn, sup, age);
806 segselect_cb_serial(struct lfs *fs, int sn, SEGUSE *sup)
825 return segselect_cb_rosenblum(fs, sn, sup, age);
909 SEGUSE *sup;
958 LFS_SEGENTRY(sup, fs, sn, bp);
959 if (sup->su_flags & SEGUSE_ACTIVE)
961 else if (!(sup->su_flags & SEGUSE_DIRTY))
963 else if (sup->su_flags & SEGUSE_READY)
965 else if (sup->su_flags & SEGUSE_EMPTY)
967 else if (sup->su_nbytes == 0)
970 prio = (*func)(fs, sn, sup);
972 if (sup->su_flags & SEGUSE_ERROR) {
982 segflags = sup->su_flags;
998 LFS_SEGENTRY(sup, fs, maxsn, bp);
999 sup->su_flags |= SEGUSE_ERROR;
1000 LFS_WRITESEGENTRY(sup, fs, sn, bp);