Skip to content

Commit a9add83

Browse files
Christoph HellwigAlex Elder
authored andcommitted
xfs: remove XFS_bflush
Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Alex Elder <aelder@sgi.com>
1 parent 02b102d commit a9add83

6 files changed

Lines changed: 6 additions & 8 deletions

File tree

‎fs/xfs/xfs_buf.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,4 @@ extern int xfs_flush_buftarg(xfs_buftarg_t *, int);
294294
#define xfs_getsize_buftarg(buftarg) block_size((buftarg)->bt_bdev)
295295
#define xfs_readonly_buftarg(buftarg) bdev_read_only((buftarg)->bt_bdev)
296296

297-
#define XFS_bflush(buftarg) xfs_flush_buftarg(buftarg, 1)
298-
299297
#endif /* __XFS_BUF_H__ */

‎fs/xfs/xfs_log_recover.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3654,7 +3654,7 @@ xlog_do_recover(
36543654
return error;
36553655
}
36563656

3657-
XFS_bflush(log->l_mp->m_ddev_targp);
3657+
xfs_flush_buftarg(log->l_mp->m_ddev_targp, 1);
36583658

36593659
/*
36603660
* If IO errors happened during recovery, bail out.

‎fs/xfs/xfs_mount.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1481,7 +1481,7 @@ xfs_unmountfs(
14811481
* state as much as possible.
14821482
*/
14831483
xfs_reclaim_inodes(mp, 0);
1484-
XFS_bflush(mp->m_ddev_targp);
1484+
xfs_flush_buftarg(mp->m_ddev_targp, 1);
14851485
xfs_reclaim_inodes(mp, SYNC_WAIT);
14861486

14871487
xfs_qm_unmount(mp);

‎fs/xfs/xfs_qm.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1681,7 +1681,7 @@ xfs_qm_quotacheck(
16811681
* quotacheck'd stamp on the superblock. So, here we do a synchronous
16821682
* flush.
16831683
*/
1684-
XFS_bflush(mp->m_ddev_targp);
1684+
xfs_flush_buftarg(mp->m_ddev_targp, 1);
16851685

16861686
/*
16871687
* If one type of quotas is off, then it will lose its

‎fs/xfs/xfs_super.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ xfs_fs_put_super(
10151015
*/
10161016
xfs_filestream_unmount(mp);
10171017

1018-
XFS_bflush(mp->m_ddev_targp);
1018+
xfs_flush_buftarg(mp->m_ddev_targp, 1);
10191019

10201020
xfs_unmountfs(mp);
10211021
xfs_freesb(mp);
@@ -1439,7 +1439,7 @@ xfs_fs_fill_super(
14391439
*/
14401440
xfs_filestream_unmount(mp);
14411441

1442-
XFS_bflush(mp->m_ddev_targp);
1442+
xfs_flush_buftarg(mp->m_ddev_targp, 1);
14431443

14441444
xfs_unmountfs(mp);
14451445
goto out_free_sb;

‎fs/xfs/xfs_sync.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ xfs_quiesce_data(
377377

378378
/* flush data-only devices */
379379
if (mp->m_rtdev_targp)
380-
XFS_bflush(mp->m_rtdev_targp);
380+
xfs_flush_buftarg(mp->m_rtdev_targp, 1);
381381

382382
return error ? error : error2;
383383
}

0 commit comments

Comments
 (0)