core, fs: handle .. resolution in the filesystem core
commit4deec2c8fb4f93204187f54f9b722072be537832
authorH. Peter Anvin <hpa@zytor.com>
Sat, 26 Jun 2010 03:36:59 +0000 (25 20:36 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 26 Jun 2010 03:36:59 +0000 (25 20:36 -0700)
treecd539c52dbe8c2980bb61b632580014479b6cd60
parent4b038f7218b382a146a101b685264ca425c13811
core, fs: handle .. resolution in the filesystem core

Some filesystems, including btrfs, don't have .. directory entries.
We already handle . in the filesystem core, handle .. as well.

This means keeping chains of parent inodes for all open inodes, at
least for the duration of a path search; we might as well hang onto
them.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/fs/fs.c
core/include/fs.h