kernel_optimize_test/fs/ufs
Fabian Frederick 0244756edc ufs: sb mutex merge + mutex_destroy
Commit 788257d610 ("ufs: remove the BKL") replaced BKL with mutex
protection using functions lock_ufs, unlock_ufs and struct mutex 'mutex'
in sb_info.

Commit b6963327e0 ("ufs: drop lock/unlock super") removed lock/unlock
super and added struct mutex 's_lock' in sb_info.

Those 2 mutexes are generally locked/unlocked at the same time except in
allocation (balloc, ialloc).

This patch merges the 2 mutexes and propagates first commit solution.
It also adds mutex destruction before kfree during ufs_fill_super
failure and ufs_put_super.

[akpm@linux-foundation.org: avoid ifdefs, return -EROFS not -EINVAL]
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Evgeniy Dushistov <dushistov@mail.ru>
Cc: "Chen, Jet" <jet.chen@intel.com>
Cc: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-06-06 16:08:18 -07:00
..
balloc.c ufs: sb mutex merge + mutex_destroy 2014-06-06 16:08:18 -07:00
cylinder.c
dir.c
file.c
ialloc.c ufs: sb mutex merge + mutex_destroy 2014-06-06 16:08:18 -07:00
inode.c mm + fs: store shadow entries in page cache 2014-04-03 16:21:01 -07:00
Kconfig
Makefile
namei.c
super.c ufs: sb mutex merge + mutex_destroy 2014-06-06 16:08:18 -07:00
swab.h
symlink.c
truncate.c
ufs_fs.h
ufs.h ufs: sb mutex merge + mutex_destroy 2014-06-06 16:08:18 -07:00
util.c
util.h