fs: reference-count inodes, fix generic loadconfig
authorH. Peter Anvin <hpa@zytor.com>
Tue, 16 Feb 2010 04:32:21 +0000 (20:32 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 16 Feb 2010 04:32:21 +0000 (20:32 -0800)
commitb9885de16d126cbe9574cc939a181888b955499b
tree86f0927f6c830379ad4ede3478ee57c1776c02a8
parentead47b56aac1d327fa4788b12e53d04c3eafb198
fs: reference-count inodes, fix generic loadconfig

Reference-count inodes, so we don't leak them all over the place.
This also lets us hold onto the root inode from the very beginning.
Make the generic loadconfig work again.  Significant cleanups to the
ext2 filesystem core.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/chdir.c
core/fs.c
core/fs/ext2/bmap.c
core/fs/ext2/ext2.c
core/fs/ext2/ext2_fs.h
core/fs/fat/fat.c
core/fs/iso9660/iso9660.c
core/fs/lib/close.c [new file with mode: 0644]
core/fs/lib/loadconfig.c
core/include/fs.h