UBI: kill debugging buffer
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 14 Mar 2011 15:11:29 +0000 (17:11 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 16 Mar 2011 11:50:16 +0000 (13:50 +0200)
commit6edb9793959fb547a15d5ffe6b142d9f0b3e41a6
tree85ce150c27b728dbddcfbd303154c7e59c95e548
parent332873d60b943c9bf53957c6e334038ac5e9dc6b
UBI: kill debugging buffer

This patch kills the 'ubi->dbg_peb_buf' debugging buffer and the
associated mutex, because all users of this buffer are now gone.
We are killing this buffer because we are going to switch to
dynamic debugging control, just like in UBIFS, which means that
CONFIG_MTD_UBI_DEBUG_PARANOID will be removed. In this case we'd
end up always allocating 'ubi->dbg_peb_buf', which is rather large
(128KiB or more), and this would be wasteful. Thus, we are just
killing it.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/build.c
drivers/mtd/ubi/ubi.h