]> git.sur5r.net Git - u-boot/commitdiff
ubifs: Change value of mutex_is_locked()
authorBradley Bolen <bradleybolen@gmail.com>
Wed, 4 Apr 2018 16:42:16 +0000 (12:42 -0400)
committerHeiko Schocher <hs@denx.de>
Wed, 11 Apr 2018 09:27:07 +0000 (11:27 +0200)
The mutex lock and unlock functions are stubbed out and mutex_is_locked
was 0.  This caused asserts to fail in ubifs code when checking that the
mutex was locked.  For example,

UBIFS assert failed in ubifs_change_lp at 540
UBIFS assert failed in ubifs_release_lprops at 278

Assume that the "mutex" is locked since that is the normal case when it
is checked in the ubifs code.

Signed-off-by: Bradley Bolen <bradleybolen@gmail.com>
fs/ubifs/ubifs.h

index b4ce706a8e6af65bc48c23dadb4d688480576094..cbc4cb2bc899afba2c423afd0fb0fbee58e37274 100644 (file)
@@ -611,7 +611,7 @@ static inline ino_t parent_ino(struct dentry *dentry)
 /* misc.h */
 #define mutex_lock_nested(...)
 #define mutex_unlock_nested(...)
-#define mutex_is_locked(...)   0
+#define mutex_is_locked(...)   1
 #endif
 
 /* Version of this UBIFS implementation */