aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_iomap.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_iomap.c')
-rw-r--r--fs/xfs/xfs_iomap.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/fs/xfs/xfs_iomap.c b/fs/xfs/xfs_iomap.c
index 544f053860f1..681ba34c9233 100644
--- a/fs/xfs/xfs_iomap.c
+++ b/fs/xfs/xfs_iomap.c
@@ -381,7 +381,6 @@ xfs_iomap_write_delay(
381 xfs_fileoff_t last_fsb; 381 xfs_fileoff_t last_fsb;
382 xfs_off_t aligned_offset; 382 xfs_off_t aligned_offset;
383 xfs_fileoff_t ioalign; 383 xfs_fileoff_t ioalign;
384 xfs_fsblock_t firstblock;
385 xfs_extlen_t extsz; 384 xfs_extlen_t extsz;
386 int nimaps; 385 int nimaps;
387 xfs_bmbt_irec_t imap[XFS_WRITE_IMAPS]; 386 xfs_bmbt_irec_t imap[XFS_WRITE_IMAPS];
@@ -425,12 +424,8 @@ retry:
425 } 424 }
426 425
427 nimaps = XFS_WRITE_IMAPS; 426 nimaps = XFS_WRITE_IMAPS;
428 firstblock = NULLFSBLOCK; 427 error = xfs_bmapi_delay(ip, offset_fsb, last_fsb - offset_fsb,
429 error = xfs_bmapi(NULL, ip, offset_fsb, 428 imap, &nimaps, XFS_BMAPI_ENTIRE);
430 (xfs_filblks_t)(last_fsb - offset_fsb),
431 XFS_BMAPI_DELAY | XFS_BMAPI_WRITE |
432 XFS_BMAPI_ENTIRE, &firstblock, 1, imap,
433 &nimaps, NULL);
434 switch (error) { 429 switch (error) {
435 case 0: 430 case 0:
436 case ENOSPC: 431 case ENOSPC: