diff options
| author | Patrick O'Grady <[email protected]> | 2020-12-07 09:55:29 +0000 |
|---|---|---|
| committer | Miquel Raynal <[email protected]> | 2020-12-07 11:29:19 +0000 |
| commit | ffad560394de3338f3c1c9680add65a84d87a7c4 (patch) | |
| tree | 986be671f9871b3b3724dbe3b0d73f0950c938ba /fs/ext4/fast_commit.c | |
| parent | mtd: core: Fix refcounting for unpartitioned MTDs (diff) | |
| download | kernel-ffad560394de3338f3c1c9680add65a84d87a7c4.tar.gz kernel-ffad560394de3338f3c1c9680add65a84d87a7c4.zip | |
mtd: phram: Allow the user to set the erase page size.
Permit the user to specify the erase page size as a parameter.
This solves two problems:
- phram can access images made by mkfs.jffs2. mkfs.jffs2 won't
create images with erase sizes less than 8KiB; many architectures
define PAGE_SIZE as 4KiB.
- Allows more effective use of small capacity devices. JFFS2
needs somewhere between 2 and 5 empty pages for garbage collection;
and for an NVRAM part with only 32KiB of space, a smaller erase page
allows much better utilization in applications where garbage collection
is important.
Signed-off-by: Patrick O'Grady <[email protected]>
Reviewed-by: Joern Engel <[email protected]>
Link: https://lore.kernel.org/lkml/CAJ7m5OqYv_=JB9NhHsqBsa8YU0DFRoP7C+W10PY22wonAGJK=A@mail.gmail.com/
[Guohua Zhong: fix token array index out of bounds and update patch for kernel master branch]
Signed-off-by: Guohua Zhong <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Link: https://lore.kernel.org/linux-mtd/[email protected]
Diffstat (limited to 'fs/ext4/fast_commit.c')
0 files changed, 0 insertions, 0 deletions
