Lines Matching refs:sup
513 SEGUSE *sup;
535 LFS_SEGENTRY(sup, fs, snn[i], bp);
536 if (sup->su_flags & SEGUSE_ACTIVE
537 || !(sup->su_flags & SEGUSE_DIRTY))
563 LFS_SEGENTRY(sup, fs, snn[i], bp);
564 if (sup->su_flags & SEGUSE_ACTIVE
565 || !(sup->su_flags & SEGUSE_DIRTY))
737 segselect_greedy(struct lfs *fs, int sn, SEGUSE *sup)
739 return lfs_sb_getssize(fs) - sup->su_nbytes;
743 segselect_cb_rosenblum(struct lfs *fs, int sn, SEGUSE *sup, long age)
747 benefit = (int64_t)lfs_sb_getssize(fs) - sup->su_nbytes -
748 (sup->su_nsums + 1) * lfs_sb_getfsize(fs);
749 if (sup->su_flags & SEGUSE_SUPERBLOCK)
757 cost = lfs_sb_getssize(fs) + sup->su_nbytes;
762 segselect_cb_time(struct lfs *fs, int sn, SEGUSE *sup)
766 age = time_second - sup->su_lastmod;
769 return segselect_cb_rosenblum(fs, sn, sup, age);
783 segselect_cb_serial(struct lfs *fs, int sn, SEGUSE *sup)
802 return segselect_cb_rosenblum(fs, sn, sup, age);
887 SEGUSE *sup;
938 LFS_SEGENTRY(sup, fs, sn, bp);
939 if (sup->su_flags & SEGUSE_ACTIVE)
941 else if (!(sup->su_flags & SEGUSE_DIRTY))
943 else if (sup->su_flags & SEGUSE_READY)
945 else if (sup->su_flags & SEGUSE_EMPTY)
947 else if (sup->su_nbytes == 0)
950 prio = (*func)(fs, sn, sup);
952 if (sup->su_flags & SEGUSE_ERROR) {
962 segflags = sup->su_flags;
978 LFS_SEGENTRY(sup, fs, maxsn, bp);
979 sup->su_flags |= SEGUSE_ERROR;
980 LFS_WRITESEGENTRY(sup, fs, sn, bp);