[JFFS2][XATTR] using 'delete marker' for xdatum/xref deletion
authorKaiGai Kohei <kaigai@ak.jp.nec.com>
Sun, 11 Jun 2006 01:35:15 +0000 (10:35 +0900)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 27 Jun 2006 15:16:26 +0000 (16:16 +0100)
commitc9f700f840bd481b3e01fcad1ba8da01794a6726
tree786f4a6a3f3a2d619ae4230a62f95361fcd3245a
parent6d4f8224d4ee065e0e3186cc554468d735e6015d
[JFFS2][XATTR] using 'delete marker' for xdatum/xref deletion

- When xdatum is removed, a new xdatum with 'delete marker' is
  written. (version==0xffffffff means 'delete marker')
- When xref is removed, a new xref with 'delete marker' is written.
  (odd-numbered xseqno means 'delete marker')

- delete_xattr_(datum/xref)_delay() are new deletion functions
  are added. We can only use them if we can detect the target
  obsolete xdatum/xref as a orphan or errir one.
  (e.g when inode deletion, or detecting crc error)

[1/3] jffs2-xattr-v6-01-delete_marker.patch

Signed-off-by: KaiGai Kohei <kaigai@ak.jp.nec.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
fs/jffs2/erase.c
fs/jffs2/gc.c
fs/jffs2/jffs2_fs_sb.h
fs/jffs2/malloc.c
fs/jffs2/nodemgmt.c
fs/jffs2/scan.c
fs/jffs2/summary.c
fs/jffs2/xattr.c
fs/jffs2/xattr.h
include/linux/jffs2.h