pnfs/blocklayout: require 64-bit sector_t
authorChristoph Hellwig <hch@lst.de>
Sat, 5 Aug 2017 08:59:14 +0000 (10:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Aug 2017 20:43:22 +0000 (13:43 -0700)
commita68978bb949a9be075b75a045250ce89d7550604
tree448c5d02ff1a47c573de334948b44646247517df
parenteda1b3d42fad388bf285e8d7b45009b61b0e6f6e
pnfs/blocklayout: require 64-bit sector_t

commit 8a9d6e964d318533ba3d2901ce153ba317c99a89 upstream.

The blocklayout code does not compile cleanly for a 32-bit sector_t,
and also has no reliable checks for devices sizes, which makes it
unsafe to use with a kernel that doesn't support large block devices.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 5c83746a0cf2 ("pnfs/blocklayout: in-kernel GETDEVICEINFO XDR parsing")
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/Kconfig