Commit 52813fb1 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Darrick J. Wong

xfs: fix integer truncation in xfs_bmap_remap_alloc

bno should be a xfs_fsblock_t, which is 64-bit wides instead of a
xfs_aglock_t, which truncates the value to 32 bits.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
parent 3b4683c2
...@@ -3863,7 +3863,7 @@ xfs_bmap_remap_alloc( ...@@ -3863,7 +3863,7 @@ xfs_bmap_remap_alloc(
{ {
struct xfs_trans *tp = ap->tp; struct xfs_trans *tp = ap->tp;
struct xfs_mount *mp = tp->t_mountp; struct xfs_mount *mp = tp->t_mountp;
xfs_agblock_t bno; xfs_fsblock_t bno;
struct xfs_alloc_arg args; struct xfs_alloc_arg args;
int error; int error;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment