diff options
Diffstat (limited to 'fs/ocfs2/super.c')
-rw-r--r-- | fs/ocfs2/super.c | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index a8a0ca44f88f..f02c0ef31578 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c | |||
@@ -630,8 +630,6 @@ static int ocfs2_remount(struct super_block *sb, int *flags, char *data) | |||
630 | struct ocfs2_super *osb = OCFS2_SB(sb); | 630 | struct ocfs2_super *osb = OCFS2_SB(sb); |
631 | u32 tmp; | 631 | u32 tmp; |
632 | 632 | ||
633 | lock_kernel(); | ||
634 | |||
635 | if (!ocfs2_parse_options(sb, data, &parsed_options, 1) || | 633 | if (!ocfs2_parse_options(sb, data, &parsed_options, 1) || |
636 | !ocfs2_check_set_options(sb, &parsed_options)) { | 634 | !ocfs2_check_set_options(sb, &parsed_options)) { |
637 | ret = -EINVAL; | 635 | ret = -EINVAL; |
@@ -739,7 +737,6 @@ unlock_osb: | |||
739 | MS_POSIXACL : 0); | 737 | MS_POSIXACL : 0); |
740 | } | 738 | } |
741 | out: | 739 | out: |
742 | unlock_kernel(); | ||
743 | return ret; | 740 | return ret; |
744 | } | 741 | } |
745 | 742 | ||
@@ -1239,14 +1236,12 @@ read_super_error: | |||
1239 | return status; | 1236 | return status; |
1240 | } | 1237 | } |
1241 | 1238 | ||
1242 | static int ocfs2_get_sb(struct file_system_type *fs_type, | 1239 | static struct dentry *ocfs2_mount(struct file_system_type *fs_type, |
1243 | int flags, | 1240 | int flags, |
1244 | const char *dev_name, | 1241 | const char *dev_name, |
1245 | void *data, | 1242 | void *data) |
1246 | struct vfsmount *mnt) | ||
1247 | { | 1243 | { |
1248 | return get_sb_bdev(fs_type, flags, dev_name, data, ocfs2_fill_super, | 1244 | return mount_bdev(fs_type, flags, dev_name, data, ocfs2_fill_super); |
1249 | mnt); | ||
1250 | } | 1245 | } |
1251 | 1246 | ||
1252 | static void ocfs2_kill_sb(struct super_block *sb) | 1247 | static void ocfs2_kill_sb(struct super_block *sb) |
@@ -1270,8 +1265,7 @@ out: | |||
1270 | static struct file_system_type ocfs2_fs_type = { | 1265 | static struct file_system_type ocfs2_fs_type = { |
1271 | .owner = THIS_MODULE, | 1266 | .owner = THIS_MODULE, |
1272 | .name = "ocfs2", | 1267 | .name = "ocfs2", |
1273 | .get_sb = ocfs2_get_sb, /* is this called when we mount | 1268 | .mount = ocfs2_mount, |
1274 | * the fs? */ | ||
1275 | .kill_sb = ocfs2_kill_sb, | 1269 | .kill_sb = ocfs2_kill_sb, |
1276 | 1270 | ||
1277 | .fs_flags = FS_REQUIRES_DEV|FS_RENAME_DOES_D_MOVE, | 1271 | .fs_flags = FS_REQUIRES_DEV|FS_RENAME_DOES_D_MOVE, |
@@ -1696,13 +1690,9 @@ static void ocfs2_put_super(struct super_block *sb) | |||
1696 | { | 1690 | { |
1697 | mlog_entry("(0x%p)\n", sb); | 1691 | mlog_entry("(0x%p)\n", sb); |
1698 | 1692 | ||
1699 | lock_kernel(); | ||
1700 | |||
1701 | ocfs2_sync_blockdev(sb); | 1693 | ocfs2_sync_blockdev(sb); |
1702 | ocfs2_dismount_volume(sb, 0); | 1694 | ocfs2_dismount_volume(sb, 0); |
1703 | 1695 | ||
1704 | unlock_kernel(); | ||
1705 | |||
1706 | mlog_exit_void(); | 1696 | mlog_exit_void(); |
1707 | } | 1697 | } |
1708 | 1698 | ||