aboutsummaryrefslogtreecommitdiffstats
path: root/fs/hppfs/hppfs.c
diff options
context:
space:
mode:
authorMiklos Szeredi <[email protected]>2008-07-02 19:30:15 +0000
committerAl Viro <[email protected]>2008-07-27 00:53:05 +0000
commitd70b67c8bc72ee23b55381bd6a884f4796692f77 (patch)
treec15055c81f21b7863318e1e6f8a9620afaeb3327 /fs/hppfs/hppfs.c
parentMerge branch 'tracing-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/... (diff)
downloadkernel-d70b67c8bc72ee23b55381bd6a884f4796692f77.tar.gz
kernel-d70b67c8bc72ee23b55381bd6a884f4796692f77.zip
[patch] vfs: fix lookup on deleted directory
Lookup can install a child dentry for a deleted directory. This keeps the directory dentry alive, and the inode pinned in the cache and on disk, even after all external references have gone away. This isn't a big problem normally, since memory pressure or umount will clear out the directory dentry and its children, releasing the inode. But for UBIFS this causes problems because its orphan area can overflow. Fix this by returning ENOENT for all lookups on a S_DEAD directory before creating a child dentry. Thanks to Zoltan Sogor for noticing this while testing UBIFS, and Artem for the excellent analysis of the problem and testing. Reported-by: Artem Bityutskiy <[email protected]> Tested-by: Artem Bityutskiy <[email protected]> Signed-off-by: Miklos Szeredi <[email protected]> Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'fs/hppfs/hppfs.c')
0 files changed, 0 insertions, 0 deletions