diff options
| author | Alexander Viro <viro@parcelfarce.linux.theplanet.co.uk> | 2003-04-27 03:47:05 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-04-27 03:47:05 -0700 |
| commit | deddb7cba8ef29f7a1366a064df9ae50ec14f01d (patch) | |
| tree | 41c7704b229135df368e7249e5ed32090b1b940d /include/linux/writeback.h | |
| parent | a113994eae7b1ed2c22f2952093fdc1392208731 (diff) | |
[PATCH] simple_fill_super()
New libfs.c helper - simple_fill_super(). Abstracted from
nfsd/nfsctl.c, couple of filesystems converted to it (nfsctl, binfmt_misc).
Function takes an array of triples (name, file_operations, mode),
superblock and value for its ->s_magic. It acts as fill_super() - populates
superblock or fails. We get a ramfs-style flat tree - root directory and
a bunch of files in it.
That animal allows to put together a simple filesystem without
touching any directory-related stuff - now it's as easy as implementing
file_operations for files you want to have and telling what to call them.
Diffstat (limited to 'include/linux/writeback.h')
0 files changed, 0 insertions, 0 deletions
