From 96fdc72ddfe8aa3eb1f51e78cc13babefbf26dda Mon Sep 17 00:00:00 2001 From: Davide Libenzi Date: Tue, 16 Oct 2007 23:30:19 -0700 Subject: [PATCH] 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-format-patch failed