[JFFS2][XATTR] Handling the duplicate JFFS2_NODETYPE_XATTR node cases.
authorKaiGai Kohei <kaigai@ak.jp.nec.com>
Sat, 13 May 2006 06:21:38 +0000 (15:21 +0900)
committerKaiGai Kohei <kaigai@ak.jp.nec.com>
Sat, 13 May 2006 06:21:38 +0000 (15:21 +0900)
commitc8708a9275928cc8e77bd443cd12565dda0a3ded
tree8a3eb502f0f0474eff19ec6a083cffea240ec9e3
parentdea80134dc4d54df52c0c59b0ba2bb5aa999bf30
[JFFS2][XATTR] Handling the duplicate JFFS2_NODETYPE_XATTR node cases.

When jffs2_sum_process_sum_data() found a JFFS2_NODETYPE_XATTR
which has duplicate xid and older version, an error was returned
without appropriate process.
In the result, mounting filesystem is failed.

This patch fix this problem. If jffs2_setup_xattr_datum() returned
-EEXIST, the caller marks this node as DIRTY_SPACE().

[1/2] jffs2-xattr-v5.2-01-fix-duplicate-xdatum.patch

Signed-off-by: KaiGai Kohei <kaigai@ak.jp.nec.com>
fs/jffs2/summary.c