Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212961
b: refs/heads/master
c: 3dbc4b3
h: refs/heads/master
i:
  212959: 2bc7eb9
v: v3
  • Loading branch information
Arnd Bergmann committed Oct 4, 2010
1 parent cfbcc3f commit a5bcc0b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1a028dd2dd589c3924d9711a1b073a13c820b6b5
refs/heads/master: 3dbc4b32d0b39701cbec65582e196a20889155fb
11 changes: 0 additions & 11 deletions trunk/fs/squashfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include <linux/fs.h>
#include <linux/vfs.h>
#include <linux/slab.h>
#include <linux/smp_lock.h>
#include <linux/mutex.h>
#include <linux/pagemap.h>
#include <linux/init.h>
Expand Down Expand Up @@ -87,14 +86,11 @@ static int squashfs_fill_super(struct super_block *sb, void *data, int silent)
u64 lookup_table_start, xattr_id_table_start;
int err;

lock_kernel();

TRACE("Entered squashfs_fill_superblock\n");

sb->s_fs_info = kzalloc(sizeof(*msblk), GFP_KERNEL);
if (sb->s_fs_info == NULL) {
ERROR("Failed to allocate squashfs_sb_info\n");
unlock_kernel();
return -ENOMEM;
}
msblk = sb->s_fs_info;
Expand Down Expand Up @@ -304,7 +300,6 @@ static int squashfs_fill_super(struct super_block *sb, void *data, int silent)

TRACE("Leaving squashfs_fill_super\n");
kfree(sblk);
unlock_kernel();
return 0;

failed_mount:
Expand All @@ -319,13 +314,11 @@ static int squashfs_fill_super(struct super_block *sb, void *data, int silent)
kfree(sb->s_fs_info);
sb->s_fs_info = NULL;
kfree(sblk);
unlock_kernel();
return err;

failure:
kfree(sb->s_fs_info);
sb->s_fs_info = NULL;
unlock_kernel();
return -ENOMEM;
}

Expand Down Expand Up @@ -360,8 +353,6 @@ static int squashfs_remount(struct super_block *sb, int *flags, char *data)

static void squashfs_put_super(struct super_block *sb)
{
lock_kernel();

if (sb->s_fs_info) {
struct squashfs_sb_info *sbi = sb->s_fs_info;
squashfs_cache_delete(sbi->block_cache);
Expand All @@ -376,8 +367,6 @@ static void squashfs_put_super(struct super_block *sb)
kfree(sb->s_fs_info);
sb->s_fs_info = NULL;
}

unlock_kernel();
}


Expand Down

0 comments on commit a5bcc0b

Please sign in to comment.