summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>2003-04-27 03:47:14 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2003-04-27 03:47:14 -0700
commit259f529f1f956cf9e87a32bd25d5ee5be4829f2d (patch)
treefe2f3569889a4f385ecbb5b4257a9dfacae10f5c /include/linux
parentdeddb7cba8ef29f7a1366a064df9ae50ec14f01d (diff)
[PATCH] pin_fs/release_fs
A couple of helpers - simple_pin_fs() and simple_release_fs(). My fault - that code should've been put into libfs.c from the very beginning. As it is, it got copied all over the place (binfmt_misc, capifs, usbfs, usbdevfs, rpc_pipefs). Taken to libfs.c and cleaned up.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/fs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 00ddb3866b15..9b1e07ff267b 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1294,6 +1294,8 @@ extern struct file_operations simple_dir_operations;
extern struct inode_operations simple_dir_inode_operations;
struct tree_descr { char *name; struct file_operations *ops; int mode; };
extern int simple_fill_super(struct super_block *, int, struct tree_descr *);
+extern int simple_pin_fs(char *name, struct vfsmount **mount, int *count);
+extern void simple_release_fs(struct vfsmount **mount, int *count);
#ifdef CONFIG_BLK_DEV_INITRD
extern unsigned int real_root_dev;