aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2010-10-06 14:41:18 -0400
committerAlex Elder <aelder@sgi.com>2010-10-18 16:08:07 -0400
commit1a1a3e97bad42e92cd2f32e81c396c8ee0bddb28 (patch)
tree6c8291164698decff609dfda60285a7d94c0a832 /fs/xfs
parent6c77b0ea1bdf85dfd48c20ceb10fd215a95c66e2 (diff)
xfs: remove xfs_buf wrappers
Stop having two different names for many buffer functions and use the more descriptive xfs_buf_* names directly. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/linux-2.6/xfs_buf.c19
-rw-r--r--fs/xfs/linux-2.6/xfs_buf.h20
-rw-r--r--fs/xfs/linux-2.6/xfs_super.c2
-rw-r--r--fs/xfs/quota/xfs_qm.c2
-rw-r--r--fs/xfs/xfs_attr.c6
-rw-r--r--fs/xfs/xfs_btree.c4
-rw-r--r--fs/xfs/xfs_buf_item.c4
-rw-r--r--fs/xfs/xfs_da_btree.c2
-rw-r--r--fs/xfs/xfs_dir2_leaf.c2
-rw-r--r--fs/xfs/xfs_ialloc.c2
-rw-r--r--fs/xfs/xfs_inode.c2
-rw-r--r--fs/xfs/xfs_log.c2
-rw-r--r--fs/xfs/xfs_log_recover.c6
-rw-r--r--fs/xfs/xfs_mount.c2
-rw-r--r--fs/xfs/xfs_trans_buf.c2
-rw-r--r--fs/xfs/xfs_vnodeops.c4
16 files changed, 33 insertions, 48 deletions
diff --git a/fs/xfs/linux-2.6/xfs_buf.c b/fs/xfs/linux-2.6/xfs_buf.c
index 749d7d39d657..47ef97f46fe9 100644
--- a/fs/xfs/linux-2.6/xfs_buf.c
+++ b/fs/xfs/linux-2.6/xfs_buf.c
@@ -652,8 +652,7 @@ void
652xfs_buf_readahead( 652xfs_buf_readahead(
653 xfs_buftarg_t *target, 653 xfs_buftarg_t *target,
654 xfs_off_t ioff, 654 xfs_off_t ioff,
655 size_t isize, 655 size_t isize)
656 xfs_buf_flags_t flags)
657{ 656{
658 struct backing_dev_info *bdi; 657 struct backing_dev_info *bdi;
659 658
@@ -661,8 +660,8 @@ xfs_buf_readahead(
661 if (bdi_read_congested(bdi)) 660 if (bdi_read_congested(bdi))
662 return; 661 return;
663 662
664 flags |= (XBF_TRYLOCK|XBF_ASYNC|XBF_READ_AHEAD); 663 xfs_buf_read(target, ioff, isize,
665 xfs_buf_read(target, ioff, isize, flags); 664 XBF_TRYLOCK|XBF_ASYNC|XBF_READ_AHEAD|XBF_DONT_BLOCK);
666} 665}
667 666
668/* 667/*
@@ -691,7 +690,7 @@ xfs_buf_read_uncached(
691 XFS_BUF_BUSY(bp); 690 XFS_BUF_BUSY(bp);
692 691
693 xfsbdstrat(mp, bp); 692 xfsbdstrat(mp, bp);
694 error = xfs_iowait(bp); 693 error = xfs_buf_iowait(bp);
695 if (error || bp->b_error) { 694 if (error || bp->b_error) {
696 xfs_buf_relse(bp); 695 xfs_buf_relse(bp);
697 return NULL; 696 return NULL;
@@ -1073,7 +1072,7 @@ xfs_bdwrite(
1073 1072
1074/* 1073/*
1075 * Called when we want to stop a buffer from getting written or read. 1074 * Called when we want to stop a buffer from getting written or read.
1076 * We attach the EIO error, muck with its flags, and call biodone 1075 * We attach the EIO error, muck with its flags, and call xfs_buf_ioend
1077 * so that the proper iodone callbacks get called. 1076 * so that the proper iodone callbacks get called.
1078 */ 1077 */
1079STATIC int 1078STATIC int
@@ -1090,21 +1089,21 @@ xfs_bioerror(
1090 XFS_BUF_ERROR(bp, EIO); 1089 XFS_BUF_ERROR(bp, EIO);
1091 1090
1092 /* 1091 /*
1093 * We're calling biodone, so delete XBF_DONE flag. 1092 * We're calling xfs_buf_ioend, so delete XBF_DONE flag.
1094 */ 1093 */
1095 XFS_BUF_UNREAD(bp); 1094 XFS_BUF_UNREAD(bp);
1096 XFS_BUF_UNDELAYWRITE(bp); 1095 XFS_BUF_UNDELAYWRITE(bp);
1097 XFS_BUF_UNDONE(bp); 1096 XFS_BUF_UNDONE(bp);
1098 XFS_BUF_STALE(bp); 1097 XFS_BUF_STALE(bp);
1099 1098
1100 xfs_biodone(bp); 1099 xfs_buf_ioend(bp, 0);
1101 1100
1102 return EIO; 1101 return EIO;
1103} 1102}
1104 1103
1105/* 1104/*
1106 * Same as xfs_bioerror, except that we are releasing the buffer 1105 * Same as xfs_bioerror, except that we are releasing the buffer
1107 * here ourselves, and avoiding the biodone call. 1106 * here ourselves, and avoiding the xfs_buf_ioend call.
1108 * This is meant for userdata errors; metadata bufs come with 1107 * This is meant for userdata errors; metadata bufs come with
1109 * iodone functions attached, so that we can track down errors. 1108 * iodone functions attached, so that we can track down errors.
1110 */ 1109 */
@@ -1938,7 +1937,7 @@ xfs_flush_buftarg(
1938 bp = list_first_entry(&wait_list, struct xfs_buf, b_list); 1937 bp = list_first_entry(&wait_list, struct xfs_buf, b_list);
1939 1938
1940 list_del_init(&bp->b_list); 1939 list_del_init(&bp->b_list);
1941 xfs_iowait(bp); 1940 xfs_buf_iowait(bp);
1942 xfs_buf_relse(bp); 1941 xfs_buf_relse(bp);
1943 } 1942 }
1944 } 1943 }
diff --git a/fs/xfs/linux-2.6/xfs_buf.h b/fs/xfs/linux-2.6/xfs_buf.h
index 161333785f69..131c0ebf2c0d 100644
--- a/fs/xfs/linux-2.6/xfs_buf.h
+++ b/fs/xfs/linux-2.6/xfs_buf.h
@@ -218,8 +218,7 @@ extern xfs_buf_t *xfs_buf_get_empty(size_t, xfs_buftarg_t *);
218extern xfs_buf_t *xfs_buf_get_uncached(struct xfs_buftarg *, size_t, int); 218extern xfs_buf_t *xfs_buf_get_uncached(struct xfs_buftarg *, size_t, int);
219extern int xfs_buf_associate_memory(xfs_buf_t *, void *, size_t); 219extern int xfs_buf_associate_memory(xfs_buf_t *, void *, size_t);
220extern void xfs_buf_hold(xfs_buf_t *); 220extern void xfs_buf_hold(xfs_buf_t *);
221extern void xfs_buf_readahead(xfs_buftarg_t *, xfs_off_t, size_t, 221extern void xfs_buf_readahead(xfs_buftarg_t *, xfs_off_t, size_t);
222 xfs_buf_flags_t);
223struct xfs_buf *xfs_buf_read_uncached(struct xfs_mount *mp, 222struct xfs_buf *xfs_buf_read_uncached(struct xfs_mount *mp,
224 struct xfs_buftarg *target, 223 struct xfs_buftarg *target,
225 xfs_daddr_t daddr, size_t length, int flags); 224 xfs_daddr_t daddr, size_t length, int flags);
@@ -247,6 +246,8 @@ extern int xfs_buf_iorequest(xfs_buf_t *);
247extern int xfs_buf_iowait(xfs_buf_t *); 246extern int xfs_buf_iowait(xfs_buf_t *);
248extern void xfs_buf_iomove(xfs_buf_t *, size_t, size_t, void *, 247extern void xfs_buf_iomove(xfs_buf_t *, size_t, size_t, void *,
249 xfs_buf_rw_t); 248 xfs_buf_rw_t);
249#define xfs_buf_zero(bp, off, len) \
250 xfs_buf_iomove((bp), (off), (len), NULL, XBRW_ZERO)
250 251
251static inline int xfs_buf_geterror(xfs_buf_t *bp) 252static inline int xfs_buf_geterror(xfs_buf_t *bp)
252{ 253{
@@ -359,21 +360,6 @@ static inline void xfs_buf_relse(xfs_buf_t *bp)
359 xfs_buf_rele(bp); 360 xfs_buf_rele(bp);
360} 361}
361 362
362#define xfs_biodone(bp) xfs_buf_ioend(bp, 0)
363
364#define xfs_biomove(bp, off, len, data, rw) \
365 xfs_buf_iomove((bp), (off), (len), (data), \
366 ((rw) == XBF_WRITE) ? XBRW_WRITE : XBRW_READ)
367
368#define xfs_biozero(bp, off, len) \
369 xfs_buf_iomove((bp), (off), (len), NULL, XBRW_ZERO)
370
371#define xfs_iowait(bp) xfs_buf_iowait(bp)
372
373#define xfs_baread(target, rablkno, ralen) \
374 xfs_buf_readahead((target), (rablkno), (ralen), XBF_DONT_BLOCK)
375
376
377/* 363/*
378 * Handling of buftargs. 364 * Handling of buftargs.
379 */ 365 */
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c
index 48d5f8206549..fa1e40ac4b35 100644
--- a/fs/xfs/linux-2.6/xfs_super.c
+++ b/fs/xfs/linux-2.6/xfs_super.c
@@ -644,7 +644,7 @@ xfs_barrier_test(
644 XFS_BUF_ORDERED(sbp); 644 XFS_BUF_ORDERED(sbp);
645 645
646 xfsbdstrat(mp, sbp); 646 xfsbdstrat(mp, sbp);
647 error = xfs_iowait(sbp); 647 error = xfs_buf_iowait(sbp);
648 648
649 /* 649 /*
650 * Clear all the flags we set and possible error state in the 650 * Clear all the flags we set and possible error state in the
diff --git a/fs/xfs/quota/xfs_qm.c b/fs/xfs/quota/xfs_qm.c
index a3f8f95d33ea..d109cc557bed 100644
--- a/fs/xfs/quota/xfs_qm.c
+++ b/fs/xfs/quota/xfs_qm.c
@@ -1433,7 +1433,7 @@ xfs_qm_dqiterate(
1433 rablkcnt = map[i+1].br_blockcount; 1433 rablkcnt = map[i+1].br_blockcount;
1434 rablkno = map[i+1].br_startblock; 1434 rablkno = map[i+1].br_startblock;
1435 while (rablkcnt--) { 1435 while (rablkcnt--) {
1436 xfs_baread(mp->m_ddev_targp, 1436 xfs_buf_readahead(mp->m_ddev_targp,
1437 XFS_FSB_TO_DADDR(mp, rablkno), 1437 XFS_FSB_TO_DADDR(mp, rablkno),
1438 mp->m_quotainfo->qi_dqchunklen); 1438 mp->m_quotainfo->qi_dqchunklen);
1439 rablkno++; 1439 rablkno++;
diff --git a/fs/xfs/xfs_attr.c b/fs/xfs/xfs_attr.c
index 905d390c1e5c..c86375378810 100644
--- a/fs/xfs/xfs_attr.c
+++ b/fs/xfs/xfs_attr.c
@@ -1986,7 +1986,7 @@ xfs_attr_rmtval_get(xfs_da_args_t *args)
1986 1986
1987 tmp = (valuelen < XFS_BUF_SIZE(bp)) 1987 tmp = (valuelen < XFS_BUF_SIZE(bp))
1988 ? valuelen : XFS_BUF_SIZE(bp); 1988 ? valuelen : XFS_BUF_SIZE(bp);
1989 xfs_biomove(bp, 0, tmp, dst, XBF_READ); 1989 xfs_buf_iomove(bp, 0, tmp, dst, XBRW_READ);
1990 xfs_buf_relse(bp); 1990 xfs_buf_relse(bp);
1991 dst += tmp; 1991 dst += tmp;
1992 valuelen -= tmp; 1992 valuelen -= tmp;
@@ -2116,9 +2116,9 @@ xfs_attr_rmtval_set(xfs_da_args_t *args)
2116 2116
2117 tmp = (valuelen < XFS_BUF_SIZE(bp)) ? valuelen : 2117 tmp = (valuelen < XFS_BUF_SIZE(bp)) ? valuelen :
2118 XFS_BUF_SIZE(bp); 2118 XFS_BUF_SIZE(bp);
2119 xfs_biomove(bp, 0, tmp, src, XBF_WRITE); 2119 xfs_buf_iomove(bp, 0, tmp, src, XBRW_WRITE);
2120 if (tmp < XFS_BUF_SIZE(bp)) 2120 if (tmp < XFS_BUF_SIZE(bp))
2121 xfs_biozero(bp, tmp, XFS_BUF_SIZE(bp) - tmp); 2121 xfs_buf_zero(bp, tmp, XFS_BUF_SIZE(bp) - tmp);
2122 if ((error = xfs_bwrite(mp, bp))) {/* GROT: NOTE: synchronous write */ 2122 if ((error = xfs_bwrite(mp, bp))) {/* GROT: NOTE: synchronous write */
2123 return (error); 2123 return (error);
2124 } 2124 }
diff --git a/fs/xfs/xfs_btree.c b/fs/xfs/xfs_btree.c
index 735dc2e671b1..04f9cca8da7e 100644
--- a/fs/xfs/xfs_btree.c
+++ b/fs/xfs/xfs_btree.c
@@ -656,7 +656,7 @@ xfs_btree_reada_bufl(
656 656
657 ASSERT(fsbno != NULLFSBLOCK); 657 ASSERT(fsbno != NULLFSBLOCK);
658 d = XFS_FSB_TO_DADDR(mp, fsbno); 658 d = XFS_FSB_TO_DADDR(mp, fsbno);
659 xfs_baread(mp->m_ddev_targp, d, mp->m_bsize * count); 659 xfs_buf_readahead(mp->m_ddev_targp, d, mp->m_bsize * count);
660} 660}
661 661
662/* 662/*
@@ -676,7 +676,7 @@ xfs_btree_reada_bufs(
676 ASSERT(agno != NULLAGNUMBER); 676 ASSERT(agno != NULLAGNUMBER);
677 ASSERT(agbno != NULLAGBLOCK); 677 ASSERT(agbno != NULLAGBLOCK);
678 d = XFS_AGB_TO_DADDR(mp, agno, agbno); 678 d = XFS_AGB_TO_DADDR(mp, agno, agbno);
679 xfs_baread(mp->m_ddev_targp, d, mp->m_bsize * count); 679 xfs_buf_readahead(mp->m_ddev_targp, d, mp->m_bsize * count);
680} 680}
681 681
682STATIC int 682STATIC int
diff --git a/fs/xfs/xfs_buf_item.c b/fs/xfs/xfs_buf_item.c
index ee7557611b6e..2686d0d54c5b 100644
--- a/fs/xfs/xfs_buf_item.c
+++ b/fs/xfs/xfs_buf_item.c
@@ -973,7 +973,7 @@ xfs_buf_iodone_callbacks(
973 xfs_buf_do_callbacks(bp, lip); 973 xfs_buf_do_callbacks(bp, lip);
974 XFS_BUF_SET_FSPRIVATE(bp, NULL); 974 XFS_BUF_SET_FSPRIVATE(bp, NULL);
975 XFS_BUF_CLR_IODONE_FUNC(bp); 975 XFS_BUF_CLR_IODONE_FUNC(bp);
976 xfs_biodone(bp); 976 xfs_buf_ioend(bp, 0);
977 return; 977 return;
978 } 978 }
979 979
@@ -1032,7 +1032,7 @@ xfs_buf_iodone_callbacks(
1032 xfs_buf_do_callbacks(bp, lip); 1032 xfs_buf_do_callbacks(bp, lip);
1033 XFS_BUF_SET_FSPRIVATE(bp, NULL); 1033 XFS_BUF_SET_FSPRIVATE(bp, NULL);
1034 XFS_BUF_CLR_IODONE_FUNC(bp); 1034 XFS_BUF_CLR_IODONE_FUNC(bp);
1035 xfs_biodone(bp); 1035 xfs_buf_ioend(bp, 0);
1036} 1036}
1037 1037
1038/* 1038/*
diff --git a/fs/xfs/xfs_da_btree.c b/fs/xfs/xfs_da_btree.c
index 30fa0e206fba..1c00bedb3175 100644
--- a/fs/xfs/xfs_da_btree.c
+++ b/fs/xfs/xfs_da_btree.c
@@ -2042,7 +2042,7 @@ xfs_da_do_buf(
2042 mappedbno, nmapped, 0, &bp); 2042 mappedbno, nmapped, 0, &bp);
2043 break; 2043 break;
2044 case 3: 2044 case 3:
2045 xfs_baread(mp->m_ddev_targp, mappedbno, nmapped); 2045 xfs_buf_readahead(mp->m_ddev_targp, mappedbno, nmapped);
2046 error = 0; 2046 error = 0;
2047 bp = NULL; 2047 bp = NULL;
2048 break; 2048 break;
diff --git a/fs/xfs/xfs_dir2_leaf.c b/fs/xfs/xfs_dir2_leaf.c
index 504be8640e91..ae891223be90 100644
--- a/fs/xfs/xfs_dir2_leaf.c
+++ b/fs/xfs/xfs_dir2_leaf.c
@@ -961,7 +961,7 @@ xfs_dir2_leaf_getdents(
961 if (i > ra_current && 961 if (i > ra_current &&
962 map[ra_index].br_blockcount >= 962 map[ra_index].br_blockcount >=
963 mp->m_dirblkfsbs) { 963 mp->m_dirblkfsbs) {
964 xfs_baread(mp->m_ddev_targp, 964 xfs_buf_readahead(mp->m_ddev_targp,
965 XFS_FSB_TO_DADDR(mp, 965 XFS_FSB_TO_DADDR(mp,
966 map[ra_index].br_startblock + 966 map[ra_index].br_startblock +
967 ra_offset), 967 ra_offset),
diff --git a/fs/xfs/xfs_ialloc.c b/fs/xfs/xfs_ialloc.c
index 5371d2dc360e..0626a32c3447 100644
--- a/fs/xfs/xfs_ialloc.c
+++ b/fs/xfs/xfs_ialloc.c
@@ -212,7 +212,7 @@ xfs_ialloc_inode_init(
212 * to log a whole cluster of inodes instead of all the 212 * to log a whole cluster of inodes instead of all the
213 * individual transactions causing a lot of log traffic. 213 * individual transactions causing a lot of log traffic.
214 */ 214 */
215 xfs_biozero(fbuf, 0, ninodes << mp->m_sb.sb_inodelog); 215 xfs_buf_zero(fbuf, 0, ninodes << mp->m_sb.sb_inodelog);
216 for (i = 0; i < ninodes; i++) { 216 for (i = 0; i < ninodes; i++) {
217 int ioffset = i << mp->m_sb.sb_inodelog; 217 int ioffset = i << mp->m_sb.sb_inodelog;
218 uint isize = sizeof(struct xfs_dinode); 218 uint isize = sizeof(struct xfs_dinode);
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c
index 4fc72c9e3729..493d6b0cbef2 100644
--- a/fs/xfs/xfs_inode.c
+++ b/fs/xfs/xfs_inode.c
@@ -2724,7 +2724,7 @@ cluster_corrupt_out:
2724 XFS_BUF_UNDONE(bp); 2724 XFS_BUF_UNDONE(bp);
2725 XFS_BUF_STALE(bp); 2725 XFS_BUF_STALE(bp);
2726 XFS_BUF_ERROR(bp,EIO); 2726 XFS_BUF_ERROR(bp,EIO);
2727 xfs_biodone(bp); 2727 xfs_buf_ioend(bp, 0);
2728 } else { 2728 } else {
2729 XFS_BUF_STALE(bp); 2729 XFS_BUF_STALE(bp);
2730 xfs_buf_relse(bp); 2730 xfs_buf_relse(bp);
diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c
index c8a309424307..f4fd49c9b987 100644
--- a/fs/xfs/xfs_log.c
+++ b/fs/xfs/xfs_log.c
@@ -1310,7 +1310,7 @@ xlog_bdstrat(
1310 if (iclog->ic_state & XLOG_STATE_IOERROR) { 1310 if (iclog->ic_state & XLOG_STATE_IOERROR) {
1311 XFS_BUF_ERROR(bp, EIO); 1311 XFS_BUF_ERROR(bp, EIO);
1312 XFS_BUF_STALE(bp); 1312 XFS_BUF_STALE(bp);
1313 xfs_biodone(bp); 1313 xfs_buf_ioend(bp, 0);
1314 /* 1314 /*
1315 * It would seem logical to return EIO here, but we rely on 1315 * It would seem logical to return EIO here, but we rely on
1316 * the log state machine to propagate I/O errors instead of 1316 * the log state machine to propagate I/O errors instead of
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c
index 351d71117f16..966d3f97458c 100644
--- a/fs/xfs/xfs_log_recover.c
+++ b/fs/xfs/xfs_log_recover.c
@@ -168,7 +168,7 @@ xlog_bread_noalign(
168 XFS_BUF_SET_TARGET(bp, log->l_mp->m_logdev_targp); 168 XFS_BUF_SET_TARGET(bp, log->l_mp->m_logdev_targp);
169 169
170 xfsbdstrat(log->l_mp, bp); 170 xfsbdstrat(log->l_mp, bp);
171 error = xfs_iowait(bp); 171 error = xfs_buf_iowait(bp);
172 if (error) 172 if (error)
173 xfs_ioerror_alert("xlog_bread", log->l_mp, 173 xfs_ioerror_alert("xlog_bread", log->l_mp,
174 bp, XFS_BUF_ADDR(bp)); 174 bp, XFS_BUF_ADDR(bp));
@@ -328,7 +328,7 @@ xlog_recover_iodone(
328 SHUTDOWN_META_IO_ERROR); 328 SHUTDOWN_META_IO_ERROR);
329 } 329 }
330 XFS_BUF_CLR_IODONE_FUNC(bp); 330 XFS_BUF_CLR_IODONE_FUNC(bp);
331 xfs_biodone(bp); 331 xfs_buf_ioend(bp, 0);
332} 332}
333 333
334/* 334/*
@@ -3816,7 +3816,7 @@ xlog_do_recover(
3816 XFS_BUF_READ(bp); 3816 XFS_BUF_READ(bp);
3817 XFS_BUF_UNASYNC(bp); 3817 XFS_BUF_UNASYNC(bp);
3818 xfsbdstrat(log->l_mp, bp); 3818 xfsbdstrat(log->l_mp, bp);
3819 error = xfs_iowait(bp); 3819 error = xfs_buf_iowait(bp);
3820 if (error) { 3820 if (error) {
3821 xfs_ioerror_alert("xlog_do_recover", 3821 xfs_ioerror_alert("xlog_do_recover",
3822 log->l_mp, bp, XFS_BUF_ADDR(bp)); 3822 log->l_mp, bp, XFS_BUF_ADDR(bp));
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c
index 00538b7e694a..b1498ab5a399 100644
--- a/fs/xfs/xfs_mount.c
+++ b/fs/xfs/xfs_mount.c
@@ -1607,7 +1607,7 @@ xfs_unmountfs_writesb(xfs_mount_t *mp)
1607 XFS_BUF_UNASYNC(sbp); 1607 XFS_BUF_UNASYNC(sbp);
1608 ASSERT(XFS_BUF_TARGET(sbp) == mp->m_ddev_targp); 1608 ASSERT(XFS_BUF_TARGET(sbp) == mp->m_ddev_targp);
1609 xfsbdstrat(mp, sbp); 1609 xfsbdstrat(mp, sbp);
1610 error = xfs_iowait(sbp); 1610 error = xfs_buf_iowait(sbp);
1611 if (error) 1611 if (error)
1612 xfs_ioerror_alert("xfs_unmountfs_writesb", 1612 xfs_ioerror_alert("xfs_unmountfs_writesb",
1613 mp, sbp, XFS_BUF_ADDR(sbp)); 1613 mp, sbp, XFS_BUF_ADDR(sbp));
diff --git a/fs/xfs/xfs_trans_buf.c b/fs/xfs/xfs_trans_buf.c
index 90af025e6839..c47918c302a5 100644
--- a/fs/xfs/xfs_trans_buf.c
+++ b/fs/xfs/xfs_trans_buf.c
@@ -336,7 +336,7 @@ xfs_trans_read_buf(
336 ASSERT(!XFS_BUF_ISASYNC(bp)); 336 ASSERT(!XFS_BUF_ISASYNC(bp));
337 XFS_BUF_READ(bp); 337 XFS_BUF_READ(bp);
338 xfsbdstrat(tp->t_mountp, bp); 338 xfsbdstrat(tp->t_mountp, bp);
339 error = xfs_iowait(bp); 339 error = xfs_buf_iowait(bp);
340 if (error) { 340 if (error) {
341 xfs_ioerror_alert("xfs_trans_read_buf", mp, 341 xfs_ioerror_alert("xfs_trans_read_buf", mp,
342 bp, blkno); 342 bp, blkno);
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c
index f82c8032db52..f4195f6b8bc4 100644
--- a/fs/xfs/xfs_vnodeops.c
+++ b/fs/xfs/xfs_vnodeops.c
@@ -2460,7 +2460,7 @@ xfs_zero_remaining_bytes(
2460 XFS_BUF_READ(bp); 2460 XFS_BUF_READ(bp);
2461 XFS_BUF_SET_ADDR(bp, xfs_fsb_to_db(ip, imap.br_startblock)); 2461 XFS_BUF_SET_ADDR(bp, xfs_fsb_to_db(ip, imap.br_startblock));
2462 xfsbdstrat(mp, bp); 2462 xfsbdstrat(mp, bp);
2463 error = xfs_iowait(bp); 2463 error = xfs_buf_iowait(bp);
2464 if (error) { 2464 if (error) {
2465 xfs_ioerror_alert("xfs_zero_remaining_bytes(read)", 2465 xfs_ioerror_alert("xfs_zero_remaining_bytes(read)",
2466 mp, bp, XFS_BUF_ADDR(bp)); 2466 mp, bp, XFS_BUF_ADDR(bp));
@@ -2473,7 +2473,7 @@ xfs_zero_remaining_bytes(
2473 XFS_BUF_UNREAD(bp); 2473 XFS_BUF_UNREAD(bp);
2474 XFS_BUF_WRITE(bp); 2474 XFS_BUF_WRITE(bp);
2475 xfsbdstrat(mp, bp); 2475 xfsbdstrat(mp, bp);
2476 error = xfs_iowait(bp); 2476 error = xfs_buf_iowait(bp);
2477 if (error) { 2477 if (error) {
2478 xfs_ioerror_alert("xfs_zero_remaining_bytes(write)", 2478 xfs_ioerror_alert("xfs_zero_remaining_bytes(write)",
2479 mp, bp, XFS_BUF_ADDR(bp)); 2479 mp, bp, XFS_BUF_ADDR(bp));