ubifs: Change value of mutex_is_locked()
PATCH 1/1 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.
--- fs/ubifs/ubifs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ubifs/ubifs.h +1 -1
@@ -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 */
Signature · 1 line
2.7.4
PATCH 1/1 ubifs: Change value of mutex_is_locked()
Hello Bradley,
Am 04.04.2018 um 18:42 schrieb Bradley Bolen:
Quoted 7 lines
The mutex lock and unlock functions are stubbed out and
mutex_is_lockedwas 0. This caused asserts to fail in ubifs code when checking that the mutex was locked. For example,UBIFS assert failed in
ubifs_change_lpat 540 UBIFS assert failed inubifs_release_lpropsat 278
Quoted 7 lines
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 <[email protected]>--- fs/ubifs/ubifs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to u-boot-ubi master
Thanks!
bye,
Heiko
Signature · 3 lines
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs at denx.de