Skip to content

UBIFS: save a bit of RAM

Artem Bityutskiy linux-mtd 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6UBIFS: allocate dump buffer on demandfs/ubifs/debug.c+13 -20 replies
2/6UBIFS: allocate scanning buffer on demandfs/ubifs/lprops.c+20 -60 replies
3/6UBIFS: allocate ltab checking buffer on demandfs/ubifs/lpt_commit.c+20 -90 replies
4/6UBIFS: allocate lpt dump buffer on demandfs/ubifs/lpt_commit.c+18 -90 replies
5/6UBIFS: allocate orphans scan buffer on demandfs/ubifs/orphan.c+9 -10 replies
6/6UBIFS: save 128KiB or more RAMfs/ubifs/debug.c fs/ubifs/debug.h+0 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] UBIFS: save a bit of RAM

Hi,

this is a simple patch series which makes UBIFS use a bit less RAM. It gets rid of a debugging buffer of PEB size, which is in most cases 128KiB, but can be larger as well.

When UBIFS is compiled with debugging support (most typical setup I believe), UBIFS allocate a PEB size buffer for miscellaneous purposes. But mostly it uses the buffer in various self-checks.

However, most people never enable the self-checks, so the RAM is wasted. This patch series makes UBIFS always allocate the RAM when it is needed, and free it afterwords.

Artem.