mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
xfs: remove unreachable error injection code in xfs_qm_dqget
Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
parent
afd72454e1
commit
a61a2c8683
1 changed files with 0 additions and 17 deletions
|
@ -53,13 +53,6 @@
|
||||||
* otherwise by the lowest id first, see xfs_dqlock2.
|
* otherwise by the lowest id first, see xfs_dqlock2.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
xfs_buftarg_t *xfs_dqerror_target;
|
|
||||||
int xfs_do_dqerror;
|
|
||||||
int xfs_dqreq_num;
|
|
||||||
int xfs_dqerror_mod = 33;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
struct kmem_zone *xfs_qm_dqtrxzone;
|
struct kmem_zone *xfs_qm_dqtrxzone;
|
||||||
static struct kmem_zone *xfs_qm_dqzone;
|
static struct kmem_zone *xfs_qm_dqzone;
|
||||||
|
|
||||||
|
@ -770,15 +763,6 @@ xfs_qm_dqget(
|
||||||
return -ESRCH;
|
return -ESRCH;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
if (xfs_do_dqerror) {
|
|
||||||
if ((xfs_dqerror_target == mp->m_ddev_targp) &&
|
|
||||||
(xfs_dqreq_num++ % xfs_dqerror_mod) == 0) {
|
|
||||||
xfs_debug(mp, "Returning error in dqget");
|
|
||||||
return -EIO;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ASSERT(type == XFS_DQ_USER ||
|
ASSERT(type == XFS_DQ_USER ||
|
||||||
type == XFS_DQ_PROJ ||
|
type == XFS_DQ_PROJ ||
|
||||||
type == XFS_DQ_GROUP);
|
type == XFS_DQ_GROUP);
|
||||||
|
@ -786,7 +770,6 @@ xfs_qm_dqget(
|
||||||
ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL));
|
ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL));
|
||||||
ASSERT(xfs_inode_dquot(ip, type) == NULL);
|
ASSERT(xfs_inode_dquot(ip, type) == NULL);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
restart:
|
restart:
|
||||||
mutex_lock(&qi->qi_tree_lock);
|
mutex_lock(&qi->qi_tree_lock);
|
||||||
|
|
Loading…
Reference in a new issue