vfs: per-superblock unused dentries list (3rd version)
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | vfs: remove whitespace noise from fs/dcache.cfs/ | +64 | 0 replies | |
| 2/5 | vfs: d_genocide() doesnt add dentries to unused listfs/ | +16 | 3 replies | |
| 3/5 | vfs: remove shrink_dcache_anon()fs/ fs/ include/ | +51 | 0 replies | |
| 4/5 | vfs: per superblock dentry statsfs/ fs/ include/ +2 more | +46 | 0 replies | |
| 5/5 | vfs: per superblock dentry unused listfs/ fs/ include/ | +86 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/5] vfs: per-superblock unused dentries list (3rd version)
This patch series is an updated version of my original patches. This time the changes Andrew proposed are adressed. David can you test them wrt the scan_count stuff?
This is an attempt to have per-superblock unused dentry lists. Since dentries are lazy-removed from the unused list, one big list doesn't scale very good wrt systems with a hugh dentry cache. The dcache shrinkers spend a long time traversing the list under the dcache spinlock.
The patches introduce an additional list_head per superblock holding only the dentries of the specific superblock. The next dentry can be found quickly so the shrinkers don't need to hold the dcache lock for long.
One nice side-effect: the "busy inodes after unmount" race is fixed because prune_dcache() is getting the s_umount lock before it starts working on the superblock's dentries.
These patches are against torvalds/linux-2.6.git from today.
Comments?
Jan