Once old_inodes gets cleaned out (snaps deleted), we can return
to normalcy.
bool is_multiversion() {
return snaprealm || // other snaprealms will link to me
inode.is_dir() || // links to me in other snaps
- inode.nlink > 1; // there are remote links, possibly snapped, that will need to find me
+ inode.nlink > 1 || // there are remote links, possibly snapped, that will need to find me
+ old_inodes.size(); // once multiversion, always multiversion. until old_inodes gets cleaned out.
}
snapid_t get_oldest_snap();