move the cache code into fs dir from tfs
commit16e8aca3df86c746553c9eb053e6fbe1f721ba2e
authorLiu Aleaxander <Aleaxander@gmail.com>
Sat, 26 Jun 2010 08:37:34 +0000 (26 16:37 +0800)
committerLiu Aleaxander <Aleaxander@gmail.com>
Sat, 26 Jun 2010 08:37:34 +0000 (26 16:37 +0800)
tree47a4f04123b5d185044f00d02dc89f9801bcc63e
parent08215e0c0c24e87b2bc03791133d954c60d15276
move the cache code into fs dir from tfs

Since the cache should be fs-specific indenpdent.

And borrowed the container_of macro from linux kernel

Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com>
12 files changed:
fs/Makefile
fs/cache.c [moved from fs/tfs/cache.c with 92% similarity]
fs/super.c
fs/tfs/Makefile
fs/tfs/balloc.c
fs/tfs/dir.c
fs/tfs/file.c
fs/tfs/ialloc.c
fs/tfs/inode.c
include/cache.h
include/kernel.h
kernel/panic.c