summaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-11-06 14:54:00 -0500
committerDarrick J. Wong <darrick.wong@oracle.com>2017-11-06 14:57:39 -0500
commita61a2c8683a28cb34ce24f054a07c6da4637cdc6 (patch)
treec2ea899528efa8fce54be28b7f4aab0ff9999617 /fs/xfs
parentafd72454e1a845e1b2f1f6b654b8d12fbc5d6099 (diff)
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>
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/xfs_dquot.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/fs/xfs/xfs_dquot.c b/fs/xfs/xfs_dquot.c
index 8338b894d54f..d57c2db64e59 100644
--- a/fs/xfs/xfs_dquot.c
+++ b/fs/xfs/xfs_dquot.c
@@ -53,13 +53,6 @@
53 * otherwise by the lowest id first, see xfs_dqlock2. 53 * otherwise by the lowest id first, see xfs_dqlock2.
54 */ 54 */
55 55
56#ifdef DEBUG
57xfs_buftarg_t *xfs_dqerror_target;
58int xfs_do_dqerror;
59int xfs_dqreq_num;
60int xfs_dqerror_mod = 33;
61#endif
62
63struct kmem_zone *xfs_qm_dqtrxzone; 56struct kmem_zone *xfs_qm_dqtrxzone;
64static struct kmem_zone *xfs_qm_dqzone; 57static struct kmem_zone *xfs_qm_dqzone;
65 58
@@ -770,15 +763,6 @@ xfs_qm_dqget(
770 return -ESRCH; 763 return -ESRCH;
771 } 764 }
772 765
773#ifdef DEBUG
774 if (xfs_do_dqerror) {
775 if ((xfs_dqerror_target == mp->m_ddev_targp) &&
776 (xfs_dqreq_num++ % xfs_dqerror_mod) == 0) {
777 xfs_debug(mp, "Returning error in dqget");
778 return -EIO;
779 }
780 }
781
782 ASSERT(type == XFS_DQ_USER || 766 ASSERT(type == XFS_DQ_USER ||
783 type == XFS_DQ_PROJ || 767 type == XFS_DQ_PROJ ||
784 type == XFS_DQ_GROUP); 768 type == XFS_DQ_GROUP);
@@ -786,7 +770,6 @@ xfs_qm_dqget(
786 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); 770 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL));
787 ASSERT(xfs_inode_dquot(ip, type) == NULL); 771 ASSERT(xfs_inode_dquot(ip, type) == NULL);
788 } 772 }
789#endif
790 773
791restart: 774restart:
792 mutex_lock(&qi->qi_tree_lock); 775 mutex_lock(&qi->qi_tree_lock);