summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/gluebi.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-10-26 15:11:26 +0200
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-10-26 15:29:46 +0200
commitd125a753425b9de3c251df519e521024c79c663d (patch)
tree546946ccc49f6ca8ddb6af51a35d1bf205d09267 /drivers/mtd/ubi/gluebi.c
parentUBI: use list_move_tail instead of list_del/list_add_tail (diff)
downloadlinux-d125a753425b9de3c251df519e521024c79c663d.tar.xz
linux-d125a753425b9de3c251df519e521024c79c663d.zip
UBI: do not allocate the memory unnecessarily
UBI reserves an LEB sized buffer for various needs. We can use this buffer while scanning, instead of allocating another one. This patch was originally created by Jan Luebbe <jlu@pengutronix.de>, but then he dropped it and I picked up and tweaked a little bit. Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/mtd/ubi/gluebi.c')
0 files changed, 0 insertions, 0 deletions