Re: [PATCH] fs: inode: Recycle inodenum from volatile inode slabs

From: Chris Down
Date: Fri Dec 27 2019 - 06:37:41 EST


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.