From: Fabian Frederick Date: Fri, 6 Jun 2014 21:38:34 +0000 (-0700) Subject: ufs: sb mutex merge + mutex_destroy X-Git-Tag: omap-for-v3.16/fixes-against-rc1~91^2~4^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0244756edc4b98c129e92c7061d9f383708cf786;p=pandora-kernel.git ufs: sb mutex merge + mutex_destroy Commit 788257d6101d ("ufs: remove the BKL") replaced BKL with mutex protection using functions lock_ufs, unlock_ufs and struct mutex 'mutex' in sb_info. Commit b6963327e052 ("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 Cc: Evgeniy Dushistov Cc: "Chen, Jet" Cc: Wu Fengguang Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed