hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
u-boot/fs/ubifs/ubifs.h
....@@ -317,8 +317,8 @@
317317 struct backing_dev_info *s_bdi;
318318 #endif
319319 struct mtd_info *s_mtd;
320
- struct hlist_node s_instances;
321320 #ifndef __UBOOT__
321
+ struct hlist_node s_instances;
322322 struct quota_info s_dquot; /* Diskquota specific options */
323323 #endif
324324
....@@ -611,16 +611,20 @@
611611 /* misc.h */
612612 #define mutex_lock_nested(...)
613613 #define mutex_unlock_nested(...)
614
-#define mutex_is_locked(...) 0
614
+#define mutex_is_locked(...) 1
615615 #endif
616616
617617 /* Version of this UBIFS implementation */
618618 #define UBIFS_VERSION 1
619619
620620 /* Normal UBIFS messages */
621
+#ifdef CONFIG_UBIFS_SILENCE_MSG
622
+#define ubifs_msg(c, fmt, ...)
623
+#else
621624 #define ubifs_msg(c, fmt, ...) \
622625 pr_notice("UBIFS (ubi%d:%d): " fmt "\n", \
623626 (c)->vi.ubi_num, (c)->vi.vol_id, ##__VA_ARGS__)
627
+#endif
624628 /* UBIFS error messages */
625629 #ifndef __UBOOT__
626630 #define ubifs_err(c, fmt, ...) \