]> git.baikalelectronics.ru Git - kernel.git/commit
jffs2: allow to complete xattr integrity check on first GC scan
authorJean-Christophe DUBOIS <jcd@tribudubois.net>
Thu, 10 May 2012 15:14:03 +0000 (17:14 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 14 May 2012 04:32:36 +0000 (23:32 -0500)
commit492065fc6959f934d07134372d38230026b8d61f
tree6955c7e9b1520ab89dc26f62fc9e11997c31078c
parent79838201fc7d1daec3fbbf0406e6b86ea57a586f
jffs2: allow to complete xattr integrity check on first GC scan

Unlike file data integrity the xattr data integrity was not checked
before some explicit access to the attribute was made.

This could leave in the system a number of corrupted extended attributes
which will be detected only at access time and possibly at a very late
time compared to the time the corruption actually happened.

This patch adds the ability to check for extended attribute integrity
on first GC scan pass (similar to file data integrity check). This allows
for all present attributes to be completly verified before any use of them.

In order to work correctly this patch also needs the patch allowing
JFFS2 to discriminate between recoverable and non recoverable errors
on extended attributes.

Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
fs/jffs2/readinode.c
fs/jffs2/xattr.c
fs/jffs2/xattr.h