aboutsummaryrefslogtreecommitdiffstats
path: root/fs/internal.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-11-21 21:15:42 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2012-01-03 22:52:35 -0500
commitf47ec3f28354795f000c14bf18ed967ec81a3ec3 (patch)
tree662d479706bd948963ad3f9f00c2e6caedbe5a92 /fs/internal.h
parent5ede7b1cfa8201418fb35e12f770e9e7c2559a4d (diff)
trim fs/internal.h
some stuff in there can actually become static; some belongs to pnode.h as it's a private interface between namespace.c and pnode.c... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/internal.h')
-rw-r--r--fs/internal.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/fs/internal.h b/fs/internal.h
index fe327c20af83..839d3f9e9173 100644
--- a/fs/internal.h
+++ b/fs/internal.h
@@ -20,14 +20,8 @@ struct path;
20 * block_dev.c 20 * block_dev.c
21 */ 21 */
22#ifdef CONFIG_BLOCK 22#ifdef CONFIG_BLOCK
23extern struct super_block *blockdev_superblock;
24extern void __init bdev_cache_init(void); 23extern void __init bdev_cache_init(void);
25 24
26static inline int sb_is_blkdev_sb(struct super_block *sb)
27{
28 return sb == blockdev_superblock;
29}
30
31extern int __sync_blockdev(struct block_device *bdev, int wait); 25extern int __sync_blockdev(struct block_device *bdev, int wait);
32 26
33#else 27#else
@@ -35,11 +29,6 @@ static inline void bdev_cache_init(void)
35{ 29{
36} 30}
37 31
38static inline int sb_is_blkdev_sb(struct super_block *sb)
39{
40 return 0;
41}
42
43static inline int __sync_blockdev(struct block_device *bdev, int wait) 32static inline int __sync_blockdev(struct block_device *bdev, int wait)
44{ 33{
45 return 0; 34 return 0;
@@ -52,24 +41,13 @@ static inline int __sync_blockdev(struct block_device *bdev, int wait)
52extern void __init chrdev_init(void); 41extern void __init chrdev_init(void);
53 42
54/* 43/*
55 * exec.c
56 */
57extern int check_unsafe_exec(struct linux_binprm *);
58
59/*
60 * namespace.c 44 * namespace.c
61 */ 45 */
62extern int copy_mount_options(const void __user *, unsigned long *); 46extern int copy_mount_options(const void __user *, unsigned long *);
63extern int copy_mount_string(const void __user *, char **); 47extern int copy_mount_string(const void __user *, char **);
64 48
65extern unsigned int mnt_get_count(struct vfsmount *mnt);
66extern struct vfsmount *__lookup_mnt(struct vfsmount *, struct dentry *, int); 49extern struct vfsmount *__lookup_mnt(struct vfsmount *, struct dentry *, int);
67extern struct vfsmount *lookup_mnt(struct path *); 50extern struct vfsmount *lookup_mnt(struct path *);
68extern void mnt_set_mountpoint(struct vfsmount *, struct dentry *,
69 struct vfsmount *);
70extern void release_mounts(struct list_head *);
71extern void umount_tree(struct vfsmount *, int, struct list_head *);
72extern struct vfsmount *copy_tree(struct vfsmount *, struct dentry *, int);
73extern int finish_automount(struct vfsmount *, struct path *); 51extern int finish_automount(struct vfsmount *, struct path *);
74 52
75extern void mnt_make_longterm(struct vfsmount *); 53extern void mnt_make_longterm(struct vfsmount *);
@@ -98,8 +76,6 @@ extern struct file *get_empty_filp(void);
98 */ 76 */
99extern int do_remount_sb(struct super_block *, int, void *, int); 77extern int do_remount_sb(struct super_block *, int, void *, int);
100extern bool grab_super_passive(struct super_block *sb); 78extern bool grab_super_passive(struct super_block *sb);
101extern void __put_super(struct super_block *sb);
102extern void put_super(struct super_block *sb);
103extern struct dentry *mount_fs(struct file_system_type *, 79extern struct dentry *mount_fs(struct file_system_type *,
104 int, const char *, void *); 80 int, const char *, void *);
105 81