/*
* Now we need to clear the allocated blocks.
* Do this one block per transaction, to keep it simple.
/*
* Now we need to clear the allocated blocks.
* Do this one block per transaction, to keep it simple.
(nrblocks = in->newblocks) <= sbp->sb_rblocks ||
(sbp->sb_rblocks && (in->extsize != sbp->sb_rextsize)))
return XFS_ERROR(EINVAL);
(nrblocks = in->newblocks) <= sbp->sb_rblocks ||
(sbp->sb_rblocks && (in->extsize != sbp->sb_rextsize)))
return XFS_ERROR(EINVAL);
/*
* Read in the last block of the device, make sure it exists.
*/
error = xfs_read_buf(mp, mp->m_rtdev_targp,
/*
* Read in the last block of the device, make sure it exists.
*/
error = xfs_read_buf(mp, mp->m_rtdev_targp,
XFS_FSB_TO_BB(mp, 1), 0, &bp);
if (error)
return error;
XFS_FSB_TO_BB(mp, 1), 0, &bp);
if (error)
return error;