]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc3fc9298f4fe57a046c78984d8d68aae97f70272
treee7967f14957c8b42d7a8b03d9e6dfebeeba20d92
parentb7ad8cf4d012b64332026eff99c53c4aecfb2183
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