summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-04-11 16:45:52 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2017-04-25 09:40:39 -0700
commit52813fb13ff90bd9c39a93446cbf1103c290b6e9 (patch)
tree59a12fb32971366dffe74a40586296b7dfd49a75 /fs
parent3b4683c294095b5f777c03307ef8c60f47320e12 (diff)
downloadlinux-stable-52813fb13ff90bd9c39a93446cbf1103c290b6e9.tar.gz
linux-stable-52813fb13ff90bd9c39a93446cbf1103c290b6e9.tar.bz2
linux-stable-52813fb13ff90bd9c39a93446cbf1103c290b6e9.zip
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: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/xfs/libxfs/xfs_bmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c
index 9bd104f32908..2a426d127e05 100644
--- a/fs/xfs/libxfs/xfs_bmap.c
+++ b/fs/xfs/libxfs/xfs_bmap.c
@@ -3863,7 +3863,7 @@ xfs_bmap_remap_alloc(
{
struct xfs_trans *tp = ap->tp;
struct xfs_mount *mp = tp->t_mountp;
- xfs_agblock_t bno;
+ xfs_fsblock_t bno;
struct xfs_alloc_arg args;
int error;