diff options
Diffstat (limited to 'fs/adfs/super.c')
-rw-r--r-- | fs/adfs/super.c | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/fs/adfs/super.c b/fs/adfs/super.c index dd9becca4241..aad92f0a1048 100644 --- a/fs/adfs/super.c +++ b/fs/adfs/super.c | |||
@@ -8,26 +8,12 @@ | |||
8 | * published by the Free Software Foundation. | 8 | * published by the Free Software Foundation. |
9 | */ | 9 | */ |
10 | #include <linux/module.h> | 10 | #include <linux/module.h> |
11 | #include <linux/errno.h> | ||
12 | #include <linux/fs.h> | ||
13 | #include <linux/adfs_fs.h> | ||
14 | #include <linux/slab.h> | ||
15 | #include <linux/time.h> | ||
16 | #include <linux/stat.h> | ||
17 | #include <linux/string.h> | ||
18 | #include <linux/init.h> | 11 | #include <linux/init.h> |
19 | #include <linux/buffer_head.h> | 12 | #include <linux/buffer_head.h> |
20 | #include <linux/vfs.h> | ||
21 | #include <linux/parser.h> | 13 | #include <linux/parser.h> |
22 | #include <linux/bitops.h> | ||
23 | #include <linux/mount.h> | 14 | #include <linux/mount.h> |
24 | #include <linux/seq_file.h> | 15 | #include <linux/seq_file.h> |
25 | 16 | #include <linux/statfs.h> | |
26 | #include <asm/uaccess.h> | ||
27 | #include <asm/system.h> | ||
28 | |||
29 | #include <stdarg.h> | ||
30 | |||
31 | #include "adfs.h" | 17 | #include "adfs.h" |
32 | #include "dir_f.h" | 18 | #include "dir_f.h" |
33 | #include "dir_fplus.h" | 19 | #include "dir_fplus.h" |
@@ -132,11 +118,15 @@ static void adfs_put_super(struct super_block *sb) | |||
132 | int i; | 118 | int i; |
133 | struct adfs_sb_info *asb = ADFS_SB(sb); | 119 | struct adfs_sb_info *asb = ADFS_SB(sb); |
134 | 120 | ||
121 | lock_kernel(); | ||
122 | |||
135 | for (i = 0; i < asb->s_map_size; i++) | 123 | for (i = 0; i < asb->s_map_size; i++) |
136 | brelse(asb->s_map[i].dm_bh); | 124 | brelse(asb->s_map[i].dm_bh); |
137 | kfree(asb->s_map); | 125 | kfree(asb->s_map); |
138 | kfree(asb); | 126 | kfree(asb); |
139 | sb->s_fs_info = NULL; | 127 | sb->s_fs_info = NULL; |
128 | |||
129 | unlock_kernel(); | ||
140 | } | 130 | } |
141 | 131 | ||
142 | static int adfs_show_options(struct seq_file *seq, struct vfsmount *mnt) | 132 | static int adfs_show_options(struct seq_file *seq, struct vfsmount *mnt) |
@@ -530,3 +520,4 @@ static void __exit exit_adfs_fs(void) | |||
530 | 520 | ||
531 | module_init(init_adfs_fs) | 521 | module_init(init_adfs_fs) |
532 | module_exit(exit_adfs_fs) | 522 | module_exit(exit_adfs_fs) |
523 | MODULE_LICENSE("GPL"); | ||