[RTEMS Project] #3465: Integrate all changes from Linux v3.11 to v4.17 made in the JFFS2 sources
RTEMS trac
trac at rtems.org
Mon Jul 2 05:40:49 UTC 2018
#3465: Integrate all changes from Linux v3.11 to v4.17 made in the JFFS2 sources
------------------------------+-----------------------------
Reporter: Sebastian Huber | Owner: Sebastian Huber
Type: task | Status: assigned
Priority: normal | Milestone: 5.1
Component: fs/jaffs2 | Version: 5
Severity: normal | Keywords:
Blocked By: | Blocking:
------------------------------+-----------------------------
The original import version of the JFFS2 sources was Linux v3.11
(September 2013). Update the JFFS2 sources to Linux v4.17.
The Git command to generate the patches is:
{{{
git format-patch v3.11..v4.17 -- include/uapi/linux/jffs2.h
fs/jffs2/LICENCE fs/jffs2/acl.h fs/jffs2/build.c fs/jffs2/compr.c
fs/jffs2/compr.h fs/jffs2/compr_rtime.c fs/jffs2/compr_rubin.c
fs/jffs2/compr_zlib.c fs/jffs2/debug.c fs/jffs2/debug.h fs/jffs2/erase.c
fs/jffs2/gc.c fs/jffs2/jffs2_fs_i.h fs/jffs2/jffs2_fs_sb.h
fs/jffs2/nodelist.c fs/jffs2/nodelist.h fs/jffs2/nodemgmt.c
fs/jffs2/read.c fs/jffs2/readinode.c fs/jffs2/scan.c fs/jffs2/summary.h
fs/jffs2/write.c fs/jffs2/xattr.h
}}}
We need a source file transformation in the patches:
{{{
sed -i 's%/fs/jffs2%/cpukit/libfs/src/jffs2/src%g' 00*
}}}
To support the first commit:
{{{
From e8bbeeb755a077cfc0f814b07739f9225642d65c Mon Sep 17 00:00:00 2001
From: Cody P Schafer <cody at linux.vnet.ibm.com>
Date: Thu, 23 Jan 2014 15:56:11 -0800
Subject: [PATCH 01/24] fs/jffs2: use rbtree postorder iteration helper
instead
of opencoding
Use rbtree_postorder_for_each_entry_safe() to destroy the rbtree instead
of opencoding an alternate postorder iteration that modifies the tree
Signed-off-by: Cody P Schafer <cody at linux.vnet.ibm.com>
Cc: Michel Lespinasse <walken at google.com>
Cc: Jan Kara <jack at suse.cz>
Cc: David Woodhouse <dwmw2 at infradead.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
}}}
we have to a postorder iterator to the red-black tree support code.
The remaining 23 patches are easy to apply.
--
Ticket URL: <http://devel.rtems.org/ticket/3465>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list