summaryrefslogtreecommitdiffstats
path: root/fs/ubifs
diff options
context:
space:
mode:
authorBradley Bolen <bradleybolen@gmail.com>2018-04-04 12:42:16 -0400
committerHeiko Schocher <hs@denx.de>2018-04-11 11:27:07 +0200
commit05ea83b67ed7861c1693187dbf3a2613601c1b15 (patch)
treece2619221e4b8a03e65ed93a86b9e9b38ce0440b /fs/ubifs
parent2600df4f8ef12ece9cec13030005919e0ba2b0d5 (diff)
downloadu-boot-05ea83b67ed7861c1693187dbf3a2613601c1b15.tar.gz
u-boot-05ea83b67ed7861c1693187dbf3a2613601c1b15.tar.xz
u-boot-05ea83b67ed7861c1693187dbf3a2613601c1b15.zip
ubifs: Change value of mutex_is_locked()
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>
Diffstat (limited to 'fs/ubifs')
-rw-r--r--fs/ubifs/ubifs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h
index b4ce706a8e..cbc4cb2bc8 100644
--- a/fs/ubifs/ubifs.h
+++ b/fs/ubifs/ubifs.h
@@ -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 */