diff options
Diffstat (limited to 'fs/xfs/xfs_bmap.c')
-rw-r--r-- | fs/xfs/xfs_bmap.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c index 890ad3528174..ad595dbefe16 100644 --- a/fs/xfs/xfs_bmap.c +++ b/fs/xfs/xfs_bmap.c | |||
@@ -2762,6 +2762,7 @@ xfs_bmap_btalloc( | |||
2762 | args.mp = mp; | 2762 | args.mp = mp; |
2763 | args.fsbno = ap->rval; | 2763 | args.fsbno = ap->rval; |
2764 | args.maxlen = MIN(ap->alen, mp->m_sb.sb_agblocks); | 2764 | args.maxlen = MIN(ap->alen, mp->m_sb.sb_agblocks); |
2765 | args.firstblock = ap->firstblock; | ||
2765 | blen = 0; | 2766 | blen = 0; |
2766 | if (nullfb) { | 2767 | if (nullfb) { |
2767 | args.type = XFS_ALLOCTYPE_START_BNO; | 2768 | args.type = XFS_ALLOCTYPE_START_BNO; |
@@ -2821,7 +2822,7 @@ xfs_bmap_btalloc( | |||
2821 | else | 2822 | else |
2822 | args.minlen = ap->alen; | 2823 | args.minlen = ap->alen; |
2823 | } else if (ap->low) { | 2824 | } else if (ap->low) { |
2824 | args.type = XFS_ALLOCTYPE_FIRST_AG; | 2825 | args.type = XFS_ALLOCTYPE_START_BNO; |
2825 | args.total = args.minlen = ap->minlen; | 2826 | args.total = args.minlen = ap->minlen; |
2826 | } else { | 2827 | } else { |
2827 | args.type = XFS_ALLOCTYPE_NEAR_BNO; | 2828 | args.type = XFS_ALLOCTYPE_NEAR_BNO; |
@@ -3452,6 +3453,7 @@ xfs_bmap_extents_to_btree( | |||
3452 | XFS_IFORK_FMT_SET(ip, whichfork, XFS_DINODE_FMT_BTREE); | 3453 | XFS_IFORK_FMT_SET(ip, whichfork, XFS_DINODE_FMT_BTREE); |
3453 | args.tp = tp; | 3454 | args.tp = tp; |
3454 | args.mp = mp; | 3455 | args.mp = mp; |
3456 | args.firstblock = *firstblock; | ||
3455 | if (*firstblock == NULLFSBLOCK) { | 3457 | if (*firstblock == NULLFSBLOCK) { |
3456 | args.type = XFS_ALLOCTYPE_START_BNO; | 3458 | args.type = XFS_ALLOCTYPE_START_BNO; |
3457 | args.fsbno = XFS_INO_TO_FSB(mp, ip->i_ino); | 3459 | args.fsbno = XFS_INO_TO_FSB(mp, ip->i_ino); |
@@ -3587,6 +3589,7 @@ xfs_bmap_local_to_extents( | |||
3587 | 3589 | ||
3588 | args.tp = tp; | 3590 | args.tp = tp; |
3589 | args.mp = ip->i_mount; | 3591 | args.mp = ip->i_mount; |
3592 | args.firstblock = *firstblock; | ||
3590 | ASSERT((ifp->if_flags & | 3593 | ASSERT((ifp->if_flags & |
3591 | (XFS_IFINLINE|XFS_IFEXTENTS|XFS_IFEXTIREC)) == XFS_IFINLINE); | 3594 | (XFS_IFINLINE|XFS_IFEXTENTS|XFS_IFEXTIREC)) == XFS_IFINLINE); |
3592 | /* | 3595 | /* |