]> git.karo-electronics.de Git - mv-sheeva.git/commit
(try3-resend) Fix nfs_compat_user_ino64 so it doesn't cause problems if bit 31 or...
authorFrank Filz <ffilzlnx@us.ibm.com>
Thu, 2 Dec 2010 19:31:23 +0000 (19:31 +0000)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 10 Mar 2011 20:04:58 +0000 (15:04 -0500)
commit3fa0b4e201d254b52a251fa348bd53e53000cff6
treead5e41b45d5c8603901b34631b688ae5e3793942
parent43b7c3f051dea504afccc39bcb56d8e26c2e0b77
(try3-resend) Fix nfs_compat_user_ino64 so it doesn't cause problems if bit 31 or 63 are set in fileid

The problem was use of an int32, which when converted to a uint64
is sign extended resulting in a fileid that doesn't fit in 32 bits
even though the intent of the function is to fit the fileid into
32 bits.

Signed-off-by: Frank Filz <ffilzlnx@us.ibm.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
[Trond: Added an include for compat.h]
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/inode.c