GFS2: Change maxlen variables to size_t
authorBob Peterson <rpeterso@redhat.com>
Wed, 6 Aug 2014 13:08:36 +0000 (09:08 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 21 Aug 2014 09:22:23 +0000 (10:22 +0100)
commitb650738cd093a9f9e9551db9ce5cd68acd842dc0
treee7967f14957c8b42d7a8b03d9e6dfebeeba20d92
parenteaebdedc61ac7bc3dd6ef6eb508097c4aaabef0c
GFS2: Change maxlen variables to size_t

This patch changes some variables (especially maxlen in function
gfs2_block_map) from unsigned int to size_t. We need 64-bit arithmetic
for very large files (e.g. 1PB) where the variables otherwise get
shifted to all 0's.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/bmap.c