zhengbin (A) writes:
How about tmpfs and hugetlbfs use their own get_next_ino? like static DEFINE_PER_CPU(unsigned int, tmpfs_last_ino), which can reduce the risk of 32 bit wraparound further.
This won't help by itself, because in the case presented the wraparound almost solely comes from shmem alone.