From: Eric Sandeen Date: Sat, 10 Feb 2007 09:46:16 +0000 (-0800) Subject: [PATCH] return ENOENT from ext3_link when racing with unlink X-Git-Tag: v2.6.21-rc1~274^2~272 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2988a7740dc0dd9a0cb56576e8fe1d777dff0db3;p=pandora-kernel.git [PATCH] return ENOENT from ext3_link when racing with unlink Return -ENOENT from ext[34]_link if we've raced with unlink and i_nlink is 0. Doing otherwise has the potential to corrupt the orphan inode list, because we'd wind up with an inode with a non-zero link count on the list, and it will never get properly cleaned up & removed from the orphan list before it is freed. [akpm@osdl.org: build fix] Signed-off-by: Eric Sandeen Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed