aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_rtalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_rtalloc.c')
-rw-r--r--fs/xfs/xfs_rtalloc.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/fs/xfs/xfs_rtalloc.c b/fs/xfs/xfs_rtalloc.c
index ca4f31534a0..92d4331cd4f 100644
--- a/fs/xfs/xfs_rtalloc.c
+++ b/fs/xfs/xfs_rtalloc.c
@@ -20,7 +20,6 @@
20#include "xfs_types.h" 20#include "xfs_types.h"
21#include "xfs_bit.h" 21#include "xfs_bit.h"
22#include "xfs_log.h" 22#include "xfs_log.h"
23#include "xfs_inum.h"
24#include "xfs_trans.h" 23#include "xfs_trans.h"
25#include "xfs_sb.h" 24#include "xfs_sb.h"
26#include "xfs_ag.h" 25#include "xfs_ag.h"
@@ -34,7 +33,6 @@
34#include "xfs_rtalloc.h" 33#include "xfs_rtalloc.h"
35#include "xfs_fsops.h" 34#include "xfs_fsops.h"
36#include "xfs_error.h" 35#include "xfs_error.h"
37#include "xfs_rw.h"
38#include "xfs_inode_item.h" 36#include "xfs_inode_item.h"
39#include "xfs_trans_space.h" 37#include "xfs_trans_space.h"
40#include "xfs_utils.h" 38#include "xfs_utils.h"
@@ -1872,9 +1870,9 @@ xfs_growfs_rt(
1872 /* 1870 /*
1873 * Read in the last block of the device, make sure it exists. 1871 * Read in the last block of the device, make sure it exists.
1874 */ 1872 */
1875 bp = xfs_buf_read_uncached(mp, mp->m_rtdev_targp, 1873 bp = xfs_buf_read_uncached(mp->m_rtdev_targp,
1876 XFS_FSB_TO_BB(mp, nrblocks - 1), 1874 XFS_FSB_TO_BB(mp, nrblocks - 1),
1877 XFS_FSB_TO_B(mp, 1), 0); 1875 XFS_FSB_TO_BB(mp, 1), 0);
1878 if (!bp) 1876 if (!bp)
1879 return EIO; 1877 return EIO;
1880 xfs_buf_relse(bp); 1878 xfs_buf_relse(bp);
@@ -2219,9 +2217,9 @@ xfs_rtmount_init(
2219 (unsigned long long) mp->m_sb.sb_rblocks); 2217 (unsigned long long) mp->m_sb.sb_rblocks);
2220 return XFS_ERROR(EFBIG); 2218 return XFS_ERROR(EFBIG);
2221 } 2219 }
2222 bp = xfs_buf_read_uncached(mp, mp->m_rtdev_targp, 2220 bp = xfs_buf_read_uncached(mp->m_rtdev_targp,
2223 d - XFS_FSB_TO_BB(mp, 1), 2221 d - XFS_FSB_TO_BB(mp, 1),
2224 XFS_FSB_TO_B(mp, 1), 0); 2222 XFS_FSB_TO_BB(mp, 1), 0);
2225 if (!bp) { 2223 if (!bp) {
2226 xfs_warn(mp, "realtime device size check failed"); 2224 xfs_warn(mp, "realtime device size check failed");
2227 return EIO; 2225 return EIO;