]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH 1/2] anondev: init IDR statically
authorAlexey Dobriyan <adobriyan@gmail.com>
Thu, 28 Aug 2008 02:25:49 +0000 (06:25 +0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 23 Oct 2008 09:13:13 +0000 (05:13 -0400)
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
fs/super.c
include/linux/fs.h
init/main.c

index e931ae9511fef01f5ae98ea477b89f491a73bb00..dd23bf927fbc2e52c96bf1111ece7242c0eb3c6a 100644 (file)
@@ -682,7 +682,7 @@ void emergency_remount(void)
  * filesystems which don't use real block-devices.  -- jrs
  */
 
-static struct idr unnamed_dev_idr;
+static DEFINE_IDR(unnamed_dev_idr);
 static DEFINE_SPINLOCK(unnamed_dev_lock);/* protects the above */
 
 int set_anon_super(struct super_block *s, void *data)
@@ -726,11 +726,6 @@ void kill_anon_super(struct super_block *sb)
 
 EXPORT_SYMBOL(kill_anon_super);
 
-void __init unnamed_dev_init(void)
-{
-       idr_init(&unnamed_dev_idr);
-}
-
 void kill_litter_super(struct super_block *sb)
 {
        if (sb->s_root)
index a6a625be13fce0c66ca8d034ec69a2ca956be356..5f70aa62cf0fda420db26919164cc67210740aa1 100644 (file)
@@ -1593,7 +1593,6 @@ extern int get_sb_pseudo(struct file_system_type *, char *,
        struct vfsmount *mnt);
 extern int simple_set_mnt(struct vfsmount *mnt, struct super_block *sb);
 int __put_super_and_need_restart(struct super_block *sb);
-void unnamed_dev_init(void);
 
 /* Alas, no aliases. Too much hassle with bringing module.h everywhere */
 #define fops_get(fops) \
index 3e17a3bafe60cf2ccf85fc5bc83fd393c76a6785..c6a1024a27a33a45c4fdb7f3d87da80fe391c44b 100644 (file)
@@ -670,7 +670,6 @@ asmlinkage void __init start_kernel(void)
        fork_init(num_physpages);
        proc_caches_init();
        buffer_init();
-       unnamed_dev_init();
        key_init();
        security_init();
        vfs_caches_init(num_physpages);