diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-08-28 06:25:49 +0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2008-10-23 05:13:13 -0400 |
commit | 6de24f0ed08054b2a202902e4d63beff27654db8 (patch) | |
tree | 91f378a0335b5b9756020d37e1c54bba4a2d6434 /fs/super.c | |
parent | 8966c5e0fc867f5a7da5756b4cd1b8bbbed3d5dd (diff) | |
download | lwn-6de24f0ed08054b2a202902e4d63beff27654db8.tar.gz lwn-6de24f0ed08054b2a202902e4d63beff27654db8.zip |
[PATCH 1/2] anondev: init IDR statically
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Diffstat (limited to 'fs/super.c')
-rw-r--r-- | fs/super.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/super.c b/fs/super.c index e931ae9511fe..dd23bf927fbc 100644 --- a/fs/super.c +++ b/fs/super.c @@ -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) |