Skip to content
Commit 3fa0b4e2 authored by Frank Filz's avatar Frank Filz Committed by Trond Myklebust
Browse files

(try3-resend) Fix nfs_compat_user_ino64 so it doesn't cause problems if bit 31...


(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: default avatarFrank Filz <ffilzlnx@us.ibm.com>
Reviewed-by: default avatarJeff Layton <jlayton@redhat.com>
[Trond: Added an include for compat.h]
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 43b7c3f0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment