diff options
author | Dave Chinner <david@fromorbit.com> | 2016-03-07 09:34:54 +1100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2016-03-07 09:34:54 +1100 |
commit | 3c1a79f5fff9b5ef653dc8b900ce818860c1f710 (patch) | |
tree | 9d955a4a921a3c08082f15da740fe369647c32dd /fs/xfs/libxfs/xfs_bmap_btree.c | |
parent | 85a9f38d382bf06e995f2b1bf114596bac08d14d (diff) | |
parent | a7e5d03ba8882aa772c691f16690fe7e73cee257 (diff) | |
download | linux-3c1a79f5fff9b5ef653dc8b900ce818860c1f710.tar.gz linux-3c1a79f5fff9b5ef653dc8b900ce818860c1f710.tar.bz2 linux-3c1a79f5fff9b5ef653dc8b900ce818860c1f710.zip |
Merge branch 'xfs-misc-fixes-4.6-2' into for-next
Diffstat (limited to 'fs/xfs/libxfs/xfs_bmap_btree.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_bmap_btree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/libxfs/xfs_bmap_btree.c b/fs/xfs/libxfs/xfs_bmap_btree.c index e37508ae589b..6282f6e708af 100644 --- a/fs/xfs/libxfs/xfs_bmap_btree.c +++ b/fs/xfs/libxfs/xfs_bmap_btree.c @@ -461,7 +461,7 @@ xfs_bmbt_alloc_block( * reservation amount is insufficient then we may fail a * block allocation here and corrupt the filesystem. */ - args.minleft = xfs_trans_get_block_res(args.tp); + args.minleft = args.tp->t_blk_res; } else if (cur->bc_private.b.flist->xbf_low) { args.type = XFS_ALLOCTYPE_START_BNO; } else { @@ -470,7 +470,7 @@ xfs_bmbt_alloc_block( args.minlen = args.maxlen = args.prod = 1; args.wasdel = cur->bc_private.b.flags & XFS_BTCUR_BPRV_WASDEL; - if (!args.wasdel && xfs_trans_get_block_res(args.tp) == 0) { + if (!args.wasdel && args.tp->t_blk_res == 0) { error = -ENOSPC; goto error0; } |