mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
UBI: Fastmap: Add new module parameter fm_debug
If fm_debug is set fastmap debugging is enabled by default. This is useful if one wants to debug fastmap on an UBI device with serves the rootfs. The the UBI attach mechanism runs long before debugfs can be mounted and chk_fastmap set. Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
@@ -132,4 +132,9 @@ static inline int ubi_dbg_chk_fastmap(const struct ubi_device *ubi)
|
||||
{
|
||||
return ubi->dbg.chk_fastmap;
|
||||
}
|
||||
|
||||
static inline void ubi_enable_dbg_chk_fastmap(struct ubi_device *ubi)
|
||||
{
|
||||
ubi->dbg.chk_fastmap = 1;
|
||||
}
|
||||
#endif /* !__UBI_DEBUG_H__ */
|
||||
|
||||
Reference in New Issue
Block a user