[XFS] Fix char size overflow in bmap_alloc call for unwritten extent
authorAdrian Bunk <bunk@stusta.de>
Wed, 30 Aug 2006 03:41:58 +0000 (13:41 +1000)
committerNathan Scott <nathans@sgi.com>
Wed, 30 Aug 2006 03:41:58 +0000 (13:41 +1000)
commit7288026b8671061aff7663b1766037b3f2573627
tree6b1815edfdc11e95eb9669f471a8233a04943d21
parent1ad8f401b6e16e3ba8a70dcda466e7a0986f7e5e
[XFS] Fix char size overflow in bmap_alloc call for unwritten extent
conversion.

Since bma.conv is a char and XFS_BMAPI_CONVERT is 0x1000, bma.conv was
always assigned zero. Spotted by the GNU C compiler (SVN version).

SGI-PV: 947312
SGI-Modid: xfs-linux-melb:xfs-kern:26887a

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Nathan Scott <nathans@sgi.com>
fs/xfs/xfs_bmap.c