]> git.hungrycats.org Git - linux/commit
[PATCH] simple fs stop -ve dentries
authorHugh Dickins <hugh@veritas.com>
Tue, 24 Aug 2004 04:25:21 +0000 (21:25 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 24 Aug 2004 04:25:21 +0000 (21:25 -0700)
commit8a34e562b3613ff2d68308c69ea8842caf9c0df7
tree4b6140f58b8f235d04cc12b31d77edcd506a44db
parent7dbb1d674cffcd849cd76116144aeff45a5f3f39
[PATCH] simple fs stop -ve dentries

A tmpfs user reported increasingly slow directory reads when repeatedly
creating and unlinking in a mkstemp-like way.  The negative dentries
accumulate alarmingly (until memory pressure finally frees them), and are
just a hindrance to any in-memory filesystem.  simple_lookup set d_op to
arrange for negative dentries to be deleted immediately.

(But I failed to discover how it is that on-disk filesystems seem to keep
their negative dentries within manageable bounds: this effect was gross
with tmpfs or ramfs, but no problem at all with extN or reiser.)

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/libfs.c