• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisionb4f210563e63e5d4b73e3232fd7156424533063e (tree)
Time2022-07-20 12:49:57
AuthorPali Rohár <pali@kern...>
CommiterHeiko Schocher

Log Message

ubifs: Fix ubifs_assert_cmt_locked()

U-Boot does not implement down_write_trylock() and its stub always returns
true that lock was acquired. Therefore ubifs_assert_cmt_locked() assert
currently always fails.

Fix this issue by redefining ubifs_assert_cmt_locked() to just empty stub
as there is nothing to assert.

Signed-off-by: Pali Rohár <pali@kernel.org>

Change Summary

Incremental Difference

--- a/fs/ubifs/debug.h
+++ b/fs/ubifs/debug.h
@@ -173,13 +173,7 @@ struct ubifs_global_debug_info {
173173 } \
174174 } while (0)
175175
176-#define ubifs_assert_cmt_locked(c) do { \
177- if (unlikely(down_write_trylock(&(c)->commit_sem))) { \
178- up_write(&(c)->commit_sem); \
179- pr_debug("commit lock is not locked!\n"); \
180- ubifs_assert(0); \
181- } \
182-} while (0)
176+#define ubifs_assert_cmt_locked(c) do { } while (0)
183177
184178 #define ubifs_dbg_msg(type, fmt, ...) \
185179 pr_debug("UBIFS DBG " type ": " fmt "\n", \