[JFFS2] Fix potential memory leak of dead xattrs on unmount.
authorDavid Woodhouse <dwmw2@infradead.org>
Mon, 7 May 2007 23:12:58 +0000 (00:12 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Sun, 20 May 2007 15:30:38 +0000 (11:30 -0400)
commit2ad8ee713566671875216ebcec64f2eda47bd19d
treeb8ad57ea0041b66b68eae2bb089f0c70b13a7ab9
parent8ae5d31263c746f1680d005b33a82d167cdb9eb6
[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>
fs/jffs2/xattr.c