BKL is only used in fill_super. It is safe to remove it. Signed-off-by: Jan Blunck <jblunck@xxxxxxx> --- fs/omfs/inode.c | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/fs/omfs/inode.c b/fs/omfs/inode.c index ddfbb22..f3b7c15 100644 --- a/fs/omfs/inode.c +++ b/fs/omfs/inode.c @@ -416,15 +416,11 @@ static int omfs_fill_super(struct super_block *sb, void *data, int silent) sector_t start; int ret = -EINVAL; - lock_kernel(); - save_mount_options(sb, (char *) data); sbi = kzalloc(sizeof(struct omfs_sb_info), GFP_KERNEL); - if (!sbi) { - unlock_kernel(); + if (!sbi) return -ENOMEM; - } sb->s_fs_info = sbi; @@ -529,7 +525,6 @@ out_brelse_bh2: out_brelse_bh: brelse(bh); end: - unlock_kernel(); return ret; } -- 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