[JFFS2][XATTR] Re-define xd->refcnt as atomic_t
authorKaiGai Kohei <kaigai@ak.jp.nec.com>
Sat, 24 Jun 2006 00:16:50 +0000 (09:16 +0900)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 27 Jun 2006 15:19:06 +0000 (16:19 +0100)
In jffs2_release_xattr_datum(), it refers xd->refcnt to ensure
whether releasing xd is allowed or not.
But we can't hold xattr_sem since this function is called under
spin_lock(&c->erase_completion_lock). Thus we have to refer it
without any locking.

This patch redefine xd->refcnt as atomic_t. It enables to refer
xd->refcnt without any locking.

Signed-off-by: KaiGai Kohei <kaigai@ak.jp.nec.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>

No differences found