From: KaiGai Kohei Date: Sat, 24 Jun 2006 00:16:50 +0000 (+0900) Subject: [JFFS2][XATTR] Re-define xd->refcnt as atomic_t X-Git-Tag: v2.6.18-rc1~458^2~5 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c887e2359f6e7217cdaa17994ca94ef328b658f;p=pandora-kernel.git [JFFS2][XATTR] Re-define xd->refcnt as atomic_t 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 Signed-off-by: David Woodhouse --- Reading git-diff-tree failed