]> 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)
commitf3cbfea61a7bdaf48f649a18a3df85f7bb53e16c
tree6955c7e9b1520ab89dc26f62fc9e11997c31078c
parent9b3b5de259cd8cb41b2d1ee349dfc50159e34b64
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