[JFFS2][XATTR] rid unnecessary writing of delete marker.
authorKaiGai Kohei <kaigai@ak.jp.nec.com>
Sat, 24 Jun 2006 00:14:13 +0000 (09:14 +0900)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 27 Jun 2006 15:18:02 +0000 (16:18 +0100)
commit8a13695cbe4e8311b363f9bd25162904b984ca74
tree2ff6ecca99d5b6185e1b3df0f3ab1447a3fdff9b
parenta1ae76e96a18edf4b8a4d4e102762060c26d1c6a
[JFFS2][XATTR] rid unnecessary writing of delete marker.

In the followinf situation, an explicit delete marker is not
necessary, because we can certainlly detect those obsolete
xattr_datum or xattr_ref on next mounting.

- When to delete xattr_datum node.
- When to delete xattr_ref node on removing inode.
- When to delete xattr_ref node on updating xattr.

This patch rids writing delete marker in those situations.

Signed-off-by: KaiGai Kohei <kaigai@ak.jp.nec.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
fs/jffs2/scan.c
fs/jffs2/xattr.c
fs/jffs2/xattr.h