fs/9p: When doing inode lookup compare qid details and inode mode bits.
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Mon, 11 Jul 2011 16:40:59 +0000 (16:40 +0000)
committerEric Van Hensbergen <ericvh@gmail.com>
Sat, 23 Jul 2011 14:32:48 +0000 (09:32 -0500)
commitfd2421f54423f307ecd31bdebdca6bc317e0c492
tree6e681349c6111a6bca9a562090bdedfd5b2ed29c
parent5034990e28efb2d232ee82443a9edd62defd17ba
fs/9p: When doing inode lookup compare qid details and inode mode bits.

This make sure we don't use wrong inode from the inode hash. The inode number
of the file deleted is reused by the next file system object created
and if we only use inode number for inode hash lookup we could end up
with wrong struct inode.

Also compare inode generation number. Not all Linux file system provide
st_gen in userspace. So it could be 0;

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