From deddb7cba8ef29f7a1366a064df9ae50ec14f01d Mon Sep 17 00:00:00 2001 From: Alexander Viro Date: Sun, 27 Apr 2003 03:47:05 -0700 Subject: [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. --- kernel/ksyms.c | 1 + 1 file changed, 1 insertion(+) (limited to 'kernel') diff --git a/kernel/ksyms.c b/kernel/ksyms.c index 0902e7813348..16e30b0f15cf 100644 --- a/kernel/ksyms.c +++ b/kernel/ksyms.c @@ -313,6 +313,7 @@ EXPORT_SYMBOL(simple_readpage); EXPORT_SYMBOL(simple_prepare_write); EXPORT_SYMBOL(simple_commit_write); EXPORT_SYMBOL(simple_empty); +EXPORT_SYMBOL(simple_fill_super); EXPORT_SYMBOL(fd_install); EXPORT_SYMBOL(put_unused_fd); EXPORT_SYMBOL(get_sb_bdev); -- cgit v1.2.3