]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: add __destroy_inode
authorChristoph Hellwig <hch@lst.de>
Fri, 7 Aug 2009 17:38:29 +0000 (14:38 -0300)
committerChristoph Hellwig <hch@brick.lst.de>
Fri, 7 Aug 2009 17:38:29 +0000 (14:38 -0300)
commit21ed78e020adc6de4fd95745eda94dd7fb100a2b
treee2c65f473e079c4b6027f7f8b7224febe7483884
parentdda4d838e583523f89032369cd8cf988cdb19fd6
vfs: add __destroy_inode

When we want to tear down an inode that lost the add to the cache race
in XFS we must not call into ->destroy_inode because that would delete
the inode that won the race from the inode cache radix tree.

This patch provides the __destroy_inode helper needed to fix this,
the actual fix will be in th next patch.  As XFS was the only reason
destroy_inode was exported we shift the export to the new __destroy_inode.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
fs/inode.c
include/linux/fs.h