Lines Matching defs:orphans
560 static int lfs_fs_preporphans(lfs_t *lfs, int8_t orphans);
2414 bool orphans = false;
2486 orphans = true;
2501 // next step, clean up orphans
2538 return orphans ? LFS_OK_ORPHANED : 0;
2545 int orphans = lfs_dir_orphaningcommit(lfs, dir, attrs, attrcount);
2546 if (orphans < 0) {
2547 return orphans;
2550 if (orphans) {
2551 // make sure we've removed all orphans, this is a noop if there
4753 static int lfs_fs_preporphans(lfs_t *lfs, int8_t orphans) {
4754 LFS_ASSERT(lfs_tag_size(lfs->gstate.tag) > 0x000 || orphans >= 0);
4755 LFS_ASSERT(lfs_tag_size(lfs->gstate.tag) < 0x1ff || orphans <= 0);
4756 lfs->gstate.tag += orphans;
4855 // Check for orphans in two separate passes:
4856 // - 1 for half-orphans (relocations)
4857 // - 2 for full-orphans (removes/renames)
4859 // Two separate passes are needed as half-orphans can contain outdated
4860 // references to full-orphans, effectively hiding them from the deorphan
4865 // Fix any orphans
4877 // check head blocks for orphans
4908 LFS_DEBUG("Fixing move while fixing orphans "
4925 // did our commit create more orphans?
4935 // note we only check for full orphans if we may have had a
4936 // power-loss, otherwise orphans are created intentionally
4959 // did our commit create more orphans?
4975 // mark orphans as fixed