blob: 53af885f173243df3a5bf0906b589edccece84db [file] [log] [blame]
David Howells07f3f05c2006-09-30 20:52:18 +02001/* fs/ internal definitions
2 *
3 * Copyright (C) 2006 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version
9 * 2 of the License, or (at your option) any later version.
10 */
11
Andrew Morton5e6d12b2006-08-31 12:55:23 +020012struct super_block;
David Howellsa6f76f22008-11-14 10:39:24 +110013struct linux_binprm;
Andrew Morton5e6d12b2006-08-31 12:55:23 +020014
David Howells07f3f05c2006-09-30 20:52:18 +020015/*
16 * block_dev.c
17 */
David Howells93614012006-09-30 20:45:40 +020018#ifdef CONFIG_BLOCK
David Howells07f3f05c2006-09-30 20:52:18 +020019extern struct super_block *blockdev_superblock;
20extern void __init bdev_cache_init(void);
21
Andrew Morton5e6d12b2006-08-31 12:55:23 +020022static inline int sb_is_blkdev_sb(struct super_block *sb)
23{
24 return sb == blockdev_superblock;
25}
David Howells93614012006-09-30 20:45:40 +020026
Andrew Morton5e6d12b2006-08-31 12:55:23 +020027#else
28static inline void bdev_cache_init(void)
29{
30}
31
32static inline int sb_is_blkdev_sb(struct super_block *sb)
33{
34 return 0;
35}
David Howells93614012006-09-30 20:45:40 +020036#endif
David Howells7b0de422006-08-29 19:06:07 +010037
David Howells07f3f05c2006-09-30 20:52:18 +020038/*
39 * char_dev.c
40 */
41extern void __init chrdev_init(void);
42
43/*
David Howellsa6f76f22008-11-14 10:39:24 +110044 * exec.c
45 */
46extern void check_unsafe_exec(struct linux_binprm *);
47
48/*
David Howells07f3f05c2006-09-30 20:52:18 +020049 * namespace.c
50 */
51extern int copy_mount_options(const void __user *, unsigned long *);
Al Viro6d59e7f2008-03-22 15:48:17 -040052
53extern void free_vfsmnt(struct vfsmount *);
54extern struct vfsmount *alloc_vfsmnt(const char *);
55extern struct vfsmount *__lookup_mnt(struct vfsmount *, struct dentry *, int);
56extern void mnt_set_mountpoint(struct vfsmount *, struct dentry *,
57 struct vfsmount *);
58extern void release_mounts(struct list_head *);
59extern void umount_tree(struct vfsmount *, int, struct list_head *);
60extern struct vfsmount *copy_tree(struct vfsmount *, struct dentry *, int);
61
62extern void __init mnt_init(void);