]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/super.c
[PATCH 1/2] anondev: init IDR statically
[linux-2.6-omap-h63xx.git] / fs / super.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)