summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-07-10 13:38:06 +0200
committerHeiko Schocher <hs@denx.de>2022-07-20 05:49:57 +0200
commitb4f210563e63e5d4b73e3232fd7156424533063e (patch)
tree5970bcccfe7c143344e99fc8dbda10bb5a6414d8 /fs
parentfc97ff2695d6d7fbea7d5fda7b080f405d6ee744 (diff)
downloadu-boot-b4f210563e63e5d4b73e3232fd7156424533063e.tar.gz
u-boot-b4f210563e63e5d4b73e3232fd7156424533063e.tar.bz2
u-boot-b4f210563e63e5d4b73e3232fd7156424533063e.zip
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/ubifs/debug.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/fs/ubifs/debug.h b/fs/ubifs/debug.h
index 5f6e12702d..d69f1e6ac7 100644
--- a/fs/ubifs/debug.h
+++ b/fs/ubifs/debug.h
@@ -173,13 +173,7 @@ struct ubifs_global_debug_info {
} \
} while (0)
-#define ubifs_assert_cmt_locked(c) do { \
- if (unlikely(down_write_trylock(&(c)->commit_sem))) { \
- up_write(&(c)->commit_sem); \
- pr_debug("commit lock is not locked!\n"); \
- ubifs_assert(0); \
- } \
-} while (0)
+#define ubifs_assert_cmt_locked(c) do { } while (0)
#define ubifs_dbg_msg(type, fmt, ...) \
pr_debug("UBIFS DBG " type ": " fmt "\n", \