Commit cc5a187c authored by Arnaldo Carvalho de Melo's avatar Arnaldo Carvalho de Melo Committed by Linus Torvalds

o kernel/ksyms.c: move relevant EXPORT_SYMBOLs to fs/super.c

parent c100cc1b
......@@ -21,6 +21,7 @@
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/smp_lock.h>
#include <linux/acct.h>
......@@ -134,6 +135,8 @@ void deactivate_super(struct super_block *s)
}
}
EXPORT_SYMBOL(deactivate_super);
/**
* grab_super - acquire an active reference
* @s - reference we are trying to make active
......@@ -214,6 +217,8 @@ void generic_shutdown_super(struct super_block *sb)
up_write(&sb->s_umount);
}
EXPORT_SYMBOL(generic_shutdown_super);
/**
* sget - find or create a superblock
* @type: filesystem type superblock should belong to
......@@ -259,12 +264,16 @@ struct super_block *sget(struct file_system_type *type,
return s;
}
EXPORT_SYMBOL(sget);
void drop_super(struct super_block *sb)
{
up_read(&sb->s_umount);
put_super(sb);
}
EXPORT_SYMBOL(drop_super);
static inline void write_super(struct super_block *sb)
{
lock_super(sb);
......@@ -383,6 +392,8 @@ struct super_block * get_super(struct block_device *bdev)
return NULL;
}
EXPORT_SYMBOL(get_super);
struct super_block * user_get_super(dev_t dev)
{
struct list_head *p;
......@@ -405,6 +416,8 @@ struct super_block * user_get_super(dev_t dev)
return NULL;
}
EXPORT_SYMBOL(user_get_super);
asmlinkage long sys_ustat(unsigned dev, struct ustat __user * ubuf)
{
struct super_block *s;
......@@ -534,6 +547,8 @@ int set_anon_super(struct super_block *s, void *data)
return 0;
}
EXPORT_SYMBOL(set_anon_super);
void kill_anon_super(struct super_block *sb)
{
int slot = MINOR(sb->s_dev);
......@@ -543,6 +558,8 @@ void kill_anon_super(struct super_block *sb)
spin_unlock(&unnamed_dev_lock);
}
EXPORT_SYMBOL(kill_anon_super);
void kill_litter_super(struct super_block *sb)
{
if (sb->s_root)
......@@ -550,6 +567,8 @@ void kill_litter_super(struct super_block *sb)
kill_anon_super(sb);
}
EXPORT_SYMBOL(kill_litter_super);
static int set_bdev_super(struct super_block *s, void *data)
{
s->s_bdev = data;
......@@ -608,6 +627,8 @@ struct super_block *get_sb_bdev(struct file_system_type *fs_type,
return s;
}
EXPORT_SYMBOL(get_sb_bdev);
void kill_block_super(struct super_block *sb)
{
struct block_device *bdev = sb->s_bdev;
......@@ -616,6 +637,8 @@ void kill_block_super(struct super_block *sb)
close_bdev_excl(bdev, BDEV_FS);
}
EXPORT_SYMBOL(kill_block_super);
struct super_block *get_sb_nodev(struct file_system_type *fs_type,
int flags, void *data,
int (*fill_super)(struct super_block *, void *, int))
......@@ -638,6 +661,8 @@ struct super_block *get_sb_nodev(struct file_system_type *fs_type,
return s;
}
EXPORT_SYMBOL(get_sb_nodev);
static int compare_single(struct super_block *s, void *p)
{
return 1;
......@@ -667,6 +692,8 @@ struct super_block *get_sb_single(struct file_system_type *fs_type,
return s;
}
EXPORT_SYMBOL(get_sb_single);
struct vfsmount *
do_kern_mount(const char *fstype, int flags, const char *name, void *data)
{
......@@ -709,3 +736,5 @@ struct vfsmount *kern_mount(struct file_system_type *type)
{
return do_kern_mount(type->name, 0, type->name, NULL);
}
EXPORT_SYMBOL(kern_mount);
......@@ -140,9 +140,6 @@ EXPORT_SYMBOL(get_user_pages);
/* filesystem internal functions */
EXPORT_SYMBOL(update_atime);
EXPORT_SYMBOL(get_fs_type);
EXPORT_SYMBOL(user_get_super);
EXPORT_SYMBOL(get_super);
EXPORT_SYMBOL(drop_super);
EXPORT_SYMBOL(fput);
EXPORT_SYMBOL(fget);
EXPORT_SYMBOL(igrab);
......@@ -202,16 +199,6 @@ EXPORT_SYMBOL(lock_may_read);
EXPORT_SYMBOL(lock_may_write);
EXPORT_SYMBOL(fd_install);
EXPORT_SYMBOL(put_unused_fd);
EXPORT_SYMBOL(get_sb_bdev);
EXPORT_SYMBOL(kill_block_super);
EXPORT_SYMBOL(get_sb_nodev);
EXPORT_SYMBOL(get_sb_single);
EXPORT_SYMBOL(kill_anon_super);
EXPORT_SYMBOL(kill_litter_super);
EXPORT_SYMBOL(generic_shutdown_super);
EXPORT_SYMBOL(deactivate_super);
EXPORT_SYMBOL(sget);
EXPORT_SYMBOL(set_anon_super);
EXPORT_SYMBOL(do_select);
/* for stackable file systems (lofs, wrapfs, cryptfs, etc.) */
......@@ -239,7 +226,6 @@ EXPORT_SYMBOL(tty_flip_buffer_push);
/* filesystem registration */
EXPORT_SYMBOL(register_filesystem);
EXPORT_SYMBOL(unregister_filesystem);
EXPORT_SYMBOL(kern_mount);
EXPORT_SYMBOL(__mntput);
EXPORT_SYMBOL(may_umount);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment