[PATCH v1 0/2] jffs2: make cleanmarker support option

From: Martin Kurbanov
Date: Thu Oct 19 2023 - 03:39:01 EST


This patchset support for disable cleanmarker option. This is useful on
some NAND devices which entire OOB area is protected by ECC. Problem
fires when JFFS2 driver writes cleanmarker to some page and later it
tries to write to this page - write will be done successfully, but after
that such page becomes unreadable due to invalid ECC codes. This occurs
because the second write necessitates an update to ECC, but it is
impossible to do it correctly without block erase.

Martin Kurbanov (2):
jffs2: introduce jffs2_nandflash()
jffs2: make cleanmarker support option

fs/jffs2/Kconfig | 10 ++++++++++
fs/jffs2/erase.c | 2 +-
fs/jffs2/fs.c | 4 ++--
fs/jffs2/os-linux.h | 7 ++++++-
fs/jffs2/scan.c | 2 +-
5 files changed, 20 insertions(+), 5 deletions(-)

--
2.40.0