On Fri, Sep 29, 2023 at 11:23:04PM +0200, Mateusz Guzik wrote: > Extending struct file is not ideal by any means, but the good news is that: > 1. there is a 4 byte hole in there, if one is fine with an int-sized counter > 2. if one insists on 8 bytes, the struct is 232 bytes on my kernel > (debian). still some room up to 256, so it may be tolerable? 256 isn't quite the magic number for slabs ... at 256 bytes, we'd get 16 per 4kB page, but at 232 bytes we get 17 objects per 4kB page (or 35 per 8kB pair of pages). That said, I thik a 32-bit counter is almost certainly sufficient.