From: Davide Libenzi Date: Wed, 17 Oct 2007 06:30:19 +0000 (-0700) Subject: anon-inodes use open coded atomic_inc for the shared inode X-Git-Tag: v2.6.24-rc1~596 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96fdc72ddfe8aa3eb1f51e78cc13babefbf26dda;p=pandora-kernel.git anon-inodes use open coded atomic_inc for the shared inode Since we know the shared inode count is always >0, we can avoid igrab() and use an open coded atomic_inc(). This also fixes a bug noticed by Yan Zheng : were checking for an IS_ERR() return from igrab(), but it actually returns NULL on error. Signed-off-by: Davide Libenzi Cc: Yan Zheng Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed