fs/9p: Always ask new inode in create
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Wed, 6 Jul 2011 11:02:31 +0000 (16:32 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 Oct 2011 18:40:18 +0000 (11:40 -0700)
commit926fa0b4b9cd6537f4750642165647aa20cfeae4
tree3e63b8e8a175df1ec1a79009037fde4debe2b9c7
parent6170eea647404a2e5726ae81cc8ccc45db89812d
fs/9p: Always ask new inode in create

commit ed80fcfac2565fa866d93ba14f0e75de17a8223e upstream.

This make sure we don't end up reusing the unlinked inode object.
The ideal way is to use inode i_generation. But i_generation is
not available in userspace always.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/9p/v9fs.h
fs/9p/vfs_inode.c
fs/9p/vfs_inode_dotl.c