]> git.hungrycats.org Git - linux/commit
[PATCH] uml: fix fd leak with HostFs
authorPaolo \'Blaisorblade\' Giarrusso <blaisorblade_spam@yahoo.it>
Fri, 8 Oct 2004 00:35:03 +0000 (17:35 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 8 Oct 2004 00:35:03 +0000 (17:35 -0700)
commit73e6b2295608bd522200504e33e9cc17de53f54e
tree8e4d4e770c8101e7b0352e9d1a2c0a0ca5a1f5e8
parent73584381c02c5260a9d8b79086d30e861867c6d3
[PATCH] uml: fix fd leak with HostFs

On 2.4 we used force_delete() to make sure inode were not cached, and we then
close the host file when the inode is cleared; when porting to 2.6 the
"force_delete" thing was dropped, and this patch adds a fix for this (by
setting drop_inode = generic_delete_inode).

Search for drop_inode in the 2.6 Documentation/filesystems/vfs.txt for info
about this.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/hostfs/hostfs_kern.c