]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
UBI: embed ubi_debug_info field in ubi_device struct
authorEzequiel Garcia <elezegarcia@gmail.com>
Wed, 28 Nov 2012 12:18:30 +0000 (09:18 -0300)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Mon, 10 Dec 2012 11:38:59 +0000 (13:38 +0200)
commiteab737722ed6a5638f6251e83f0d293c2ffe549f
treeccac47deaa15cf48608352e73ded2dcf387c2737
parent64575574f26d7969713ede9bde750c979da4037e
UBI: embed ubi_debug_info field in ubi_device struct

ubi_debug_info struct was dynamically allocated which
is always suboptimal, for it tends to fragment memory
and make the code error-prone.
Fix this by embedding it in ubi_device struct.

Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/ubi/build.c
drivers/mtd/ubi/debug.c
drivers/mtd/ubi/debug.h
drivers/mtd/ubi/ubi.h