aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_vnodeops.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_vnodeops.c')
-rw-r--r--fs/xfs/xfs_vnodeops.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c
index 63874a87b378..f47ecee8d437 100644
--- a/fs/xfs/xfs_vnodeops.c
+++ b/fs/xfs/xfs_vnodeops.c
@@ -1633,10 +1633,9 @@ xfs_symlink(
1633 first_fsb = 0; 1633 first_fsb = 0;
1634 nmaps = SYMLINK_MAPS; 1634 nmaps = SYMLINK_MAPS;
1635 1635
1636 error = xfs_bmapi(tp, ip, first_fsb, fs_blocks, 1636 error = xfs_bmapi_write(tp, ip, first_fsb, fs_blocks,
1637 XFS_BMAPI_WRITE | XFS_BMAPI_METADATA, 1637 XFS_BMAPI_METADATA, &first_block, resblks,
1638 &first_block, resblks, mval, &nmaps, 1638 mval, &nmaps, &free_list);
1639 &free_list);
1640 if (error) 1639 if (error)
1641 goto error2; 1640 goto error2;
1642 1641
@@ -1782,7 +1781,6 @@ xfs_alloc_file_space(
1782 xfs_fileoff_t startoffset_fsb; 1781 xfs_fileoff_t startoffset_fsb;
1783 xfs_fsblock_t firstfsb; 1782 xfs_fsblock_t firstfsb;
1784 int nimaps; 1783 int nimaps;
1785 int bmapi_flag;
1786 int quota_flag; 1784 int quota_flag;
1787 int rt; 1785 int rt;
1788 xfs_trans_t *tp; 1786 xfs_trans_t *tp;
@@ -1810,7 +1808,6 @@ xfs_alloc_file_space(
1810 count = len; 1808 count = len;
1811 imapp = &imaps[0]; 1809 imapp = &imaps[0];
1812 nimaps = 1; 1810 nimaps = 1;
1813 bmapi_flag = XFS_BMAPI_WRITE | alloc_type;
1814 startoffset_fsb = XFS_B_TO_FSBT(mp, offset); 1811 startoffset_fsb = XFS_B_TO_FSBT(mp, offset);
1815 allocatesize_fsb = XFS_B_TO_FSB(mp, count); 1812 allocatesize_fsb = XFS_B_TO_FSB(mp, count);
1816 1813
@@ -1883,14 +1880,10 @@ xfs_alloc_file_space(
1883 1880
1884 xfs_trans_ijoin(tp, ip); 1881 xfs_trans_ijoin(tp, ip);
1885 1882
1886 /*
1887 * Issue the xfs_bmapi() call to allocate the blocks
1888 */
1889 xfs_bmap_init(&free_list, &firstfsb); 1883 xfs_bmap_init(&free_list, &firstfsb);
1890 error = xfs_bmapi(tp, ip, startoffset_fsb, 1884 error = xfs_bmapi_write(tp, ip, startoffset_fsb,
1891 allocatesize_fsb, bmapi_flag, 1885 allocatesize_fsb, alloc_type, &firstfsb,
1892 &firstfsb, 0, imapp, &nimaps, 1886 0, imapp, &nimaps, &free_list);
1893 &free_list);
1894 if (error) { 1887 if (error) {
1895 goto error0; 1888 goto error0;
1896 } 1889 }