mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
ab9d8455d4
When using overlayfs with tmpfs as the upper layer (common case), depending on the application, a lot of whiteouts can be created. This leads to a lot of memory allocation because new dentry and inode structs need to be allocated for each whiteout. With this change, we at least avoid the inode allocations. This is analogous with what Linux does. See fs/overlayfs/ovl_entry.h:ovl_fs's field `whiteout` with comment "Shared whiteout cache". PiperOrigin-RevId: 704897805