[PATCH 2/2] [XFS] Fix double free of inode

Christoph Hellwig hch at infradead.org
Sun Mar 15 10:13:41 CDT 2009


On Sun, Mar 15, 2009 at 10:25:42PM +1100, Dave Chinner wrote:
> If we fail to initialise the VFS inode in inode_init_always(),
> it will call ->delete_inode internally resulting in the inode being
> freed. Hence we need to delay the call to inode_init_always()
> until after the XFS inode is sufficient set up to handle a
> call to ->delete_inode, and then if that fails do not touch
> the inode again at all as it has been freed.

Looks good, but the changelog should mention the setting of the
I_NEW bit, too.


Reviewed-by: Christoph Hellwig <hch at lst.de>

I suspect this should go into 2.6.29-stable after some testing, too.




More information about the xfs mailing list