aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r--fs/xfs/xfs_inode.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c
index 94b60dd03801..020de5637e06 100644
--- a/fs/xfs/xfs_inode.c
+++ b/fs/xfs/xfs_inode.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2000-2003,2005 Silicon Graphics, Inc. 2 * Copyright (c) 2000-2006 Silicon Graphics, Inc.
3 * All Rights Reserved. 3 * All Rights Reserved.
4 * 4 *
5 * This program is free software; you can redistribute it and/or 5 * This program is free software; you can redistribute it and/or
@@ -1285,7 +1285,7 @@ xfs_isize_check(
1285 (xfs_ufsize_t)XFS_MAXIOFFSET(mp)) - 1285 (xfs_ufsize_t)XFS_MAXIOFFSET(mp)) -
1286 map_first), 1286 map_first),
1287 XFS_BMAPI_ENTIRE, NULL, 0, imaps, &nimaps, 1287 XFS_BMAPI_ENTIRE, NULL, 0, imaps, &nimaps,
1288 NULL)) 1288 NULL, NULL))
1289 return; 1289 return;
1290 ASSERT(nimaps == 1); 1290 ASSERT(nimaps == 1);
1291 ASSERT(imaps[0].br_startblock == HOLESTARTBLOCK); 1291 ASSERT(imaps[0].br_startblock == HOLESTARTBLOCK);
@@ -1666,12 +1666,13 @@ xfs_itruncate_finish(
1666 * runs. 1666 * runs.
1667 */ 1667 */
1668 XFS_BMAP_INIT(&free_list, &first_block); 1668 XFS_BMAP_INIT(&free_list, &first_block);
1669 error = xfs_bunmapi(ntp, ip, first_unmap_block, 1669 error = XFS_BUNMAPI(mp, ntp, &ip->i_iocore,
1670 unmap_len, 1670 first_unmap_block, unmap_len,
1671 XFS_BMAPI_AFLAG(fork) | 1671 XFS_BMAPI_AFLAG(fork) |
1672 (sync ? 0 : XFS_BMAPI_ASYNC), 1672 (sync ? 0 : XFS_BMAPI_ASYNC),
1673 XFS_ITRUNC_MAX_EXTENTS, 1673 XFS_ITRUNC_MAX_EXTENTS,
1674 &first_block, &free_list, &done); 1674 &first_block, &free_list,
1675 NULL, &done);
1675 if (error) { 1676 if (error) {
1676 /* 1677 /*
1677 * If the bunmapi call encounters an error, 1678 * If the bunmapi call encounters an error,