]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: fix nfs export of 64-bit inodes numbers on 32-bit kernels
authorChristoph Hellwig <hch@infradead.org>
Mon, 12 Dec 2011 22:22:29 +0000 (17:22 -0500)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Tue, 10 Jan 2012 21:00:14 +0000 (13:00 -0800)
commit0a830b7d65514bb988e9ff3bf40cbd8c2d20a0c1
tree2e956051c17a97e849ef9dd857a3151b5af989e9
parent7ae282aad07768cf5e9f0d178b9260f1049f3793
xfs: fix nfs export of 64-bit inodes numbers on 32-bit kernels

commit c29f7d457ac63311feb11928a866efd2fe153d74 upstream.

The i_ino field in the VFS inode is of type unsigned long and thus can't
hold the full 64-bit inode number on 32-bit kernels.  We have the full
inode number in the XFS inode, so use that one for nfs exports.  Note
that I've also switched the 32-bit file handles types to it, just to make
the code more consistent and copy & paste errors less likely to happen.

Reported-by: Guoquan Yang <ygq51@hotmail.com>
Reported-by: Hank Peng <pengxihan@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/xfs/linux-2.6/xfs_export.c