[PATCH 0/2] Move erasing to the GC thread.
Joakim Tjernlund
Joakim.Tjernlund at transmode.se
Wed Feb 17 03:16:19 EST 2010
Current JFFS2 erases blocks from write_super() which is
problematic as a reboot while erasing will make the
umount hang until all blocks has been erased.
These patches address this problem by moving the erasing
to the GC task instead, leaving write_super() to only
handle dirty data.
Joakim Tjernlund (2):
jffs2: Move erasing from write_super to GC.
jffs2: Make jffs2_erase_pending_trigger() initiate GC.
fs/jffs2/background.c | 1 +
fs/jffs2/erase.c | 7 +++++--
fs/jffs2/nodemgmt.c | 4 ++++
fs/jffs2/os-linux.h | 9 +++++++--
fs/jffs2/super.c | 2 --
fs/jffs2/wbuf.c | 2 +-
6 files changed, 18 insertions(+), 7 deletions(-)
More information about the linux-mtd
mailing list