omfs: add directory routines
authorBob Copeland <me@bobcopeland.com>
Sat, 26 Jul 2008 02:45:16 +0000 (19:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 26 Jul 2008 19:00:05 +0000 (12:00 -0700)
commita3ab7155ea21aadc8a4d5687e91b3d876973185e
tree40f74b9c4e38d12bbbbc269232fb8a5b7ad9448c
parent555e3775ced1d05203934fc6529bbf0560dd8733
omfs: add directory routines

Add lookup and directory management routines for OMFS.  The filesystem uses
hashing based on the filename and stores collisions, unordered, in siblings
of files' inode structures.  To support telldir, the current position in
the hash table is encoded in fpos.

Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/omfs/dir.c [new file with mode: 0644]