[PATCH v2 2/2] JFFS2: Add useful fields into lists

2020-05-07 Thread Petr Borsodi
The inode list uses version and ino, the dirent list uses version and pino. This information is collected during scanning, reducing accesses to flash and significantly speeding up ls and read. Signed-off-by: Petr Borsodi --- Changes for v2: - Coding Style cleanup fs/jffs2/jffs2_1pass.c

[PATCH v2 1/2] JFFS2: Process obsolete nodes as well as accurate ones

2020-05-07 Thread Petr Borsodi
Obsolete nodes (ie. without the JFFS2_NODE_ACCURATE flag) were ignored because they had seemingly invalid crc. This could lead to finding the phantom node header in obsolete node data. Signed-off-by: Petr Borsodi --- Changes for v2: - Coding Style cleanup fs/jffs2/jffs2_1pass.c | 73

[PATCH 1/2] JFFS2: Process obsolete nodes as well as accurate ones

2020-04-27 Thread petr . borsodi
From: Petr Borsodi Obsolete nodes (ie. without the JFFS2_NODE_ACCURATE flag) were ignored because they had seemingly invalid crc. This could lead to finding the phantom node header in obsolete node data. Signed-off-by: Petr Borsodi --- fs/jffs2/jffs2_1pass.c | 67

[PATCH 2/2] JFFS2: Add useful fields into lists

2020-04-27 Thread petr . borsodi
From: Petr Borsodi The inode list uses version and ino, the dirent list uses version and pino. This information is collected during scanning, reducing accesses to flash and significantly speeding up ls and read. Signed-off-by: Petr Borsodi --- fs/jffs2/jffs2_1pass.c | 154