BKL is only used in fill_super. It is safe to remove it. Signed-off-by: Jan Blunck <jblunck@xxxxxxx> --- fs/ramfs/inode.c | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/fs/ramfs/inode.c b/fs/ramfs/inode.c index 9b3983f..a6090aa 100644 --- a/fs/ramfs/inode.c +++ b/fs/ramfs/inode.c @@ -35,7 +35,6 @@ #include <linux/sched.h> #include <linux/parser.h> #include <linux/magic.h> -#include <linux/smp_lock.h> /* Only for lock_kernel() */ #include <asm/uaccess.h> #include "internal.h" @@ -221,8 +220,6 @@ static int ramfs_fill_super(struct super_block * sb, void * data, int silent) struct dentry *root; int err; - lock_kernel(); - save_mount_options(sb, data); fsi = kzalloc(sizeof(struct ramfs_fs_info), GFP_KERNEL); @@ -256,13 +253,11 @@ static int ramfs_fill_super(struct super_block * sb, void * data, int silent) goto fail; } - unlock_kernel(); return 0; fail: kfree(fsi); sb->s_fs_info = NULL; iput(inode); - unlock_kernel(); return err; } -- 1.6.4.2 -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html