]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: fix nfs export of 64-bit inodes numbers on 32-bit kernels
authorChristoph Hellwig <hch@infradead.org>
Wed, 30 Nov 2011 08:58:18 +0000 (08:58 +0000)
committerBen Myers <bpm@sgi.com>
Tue, 6 Dec 2011 16:46:23 +0000 (10:46 -0600)
commit3111a5acfc59a369ce2e5fc8d2c11c7dfd8048d0
tree277ae257d415895a980c973ab2e41f59c70999d3
parent53cb0fabaa87450da698e9b786e17ca45759c380
xfs: fix nfs export of 64-bit inodes numbers on 32-bit kernels

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>
fs/xfs/xfs_export.c