[JFFS2] Fix potential memory leak of dead xattrs on unmount.

An xattr_datum which ends up orphaned should be freed by the GC
thread. But if we umount before the GC thread is finished, or if we
mount read-only and the GC thread never runs, they might never be
freed. Clean them up during unmount, if there are any left.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>

+4
+4
fs/jffs2/xattr.c
··· 754 list_del(&xd->xindex); 755 jffs2_free_xattr_datum(xd); 756 } 757 } 758 759 #define XREF_TMPHASH_SIZE (128)
··· 754 list_del(&xd->xindex); 755 jffs2_free_xattr_datum(xd); 756 } 757 + list_for_each_entry_safe(xd, _xd, &c->xattr_unchecked, xindex) { 758 + list_del(&xd->xindex); 759 + jffs2_free_xattr_datum(xd); 760 + } 761 } 762 763 #define XREF_TMPHASH_SIZE (128)