diff options
| author | Christoph Hellwig <hch@lst.de> | 2017-04-11 16:45:52 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-06-07 12:10:14 +0200 |
| commit | 23da04dcc3af73fd69ed4229bf8e095ed524d7c5 (patch) | |
| tree | 0ee3bdbe7dcab2d28740de9f299f2f1a781b058a | |
| parent | eff615a670145310a4b27b9485d7ac98e95c71e1 (diff) | |
| download | linux-23da04dcc3af73fd69ed4229bf8e095ed524d7c5.tar.gz linux-23da04dcc3af73fd69ed4229bf8e095ed524d7c5.tar.bz2 linux-23da04dcc3af73fd69ed4229bf8e095ed524d7c5.zip | |
xfs: fix integer truncation in xfs_bmap_remap_alloc
commit 52813fb13ff90bd9c39a93446cbf1103c290b6e9 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | fs/xfs/libxfs/xfs_bmap.c | 2 |
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; |
