aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs/xfs_errortag.h
diff options
context:
space:
mode:
authorGao Xiang <hsiangkao@redhat.com>2021-03-23 19:05:39 -0700
committerDarrick J. Wong <djwong@kernel.org>2021-03-25 16:47:53 -0700
commit2b92faed551173f065ee2a8cf087dc76cf40303b (patch)
tree4eb4799a6dfa0e6a8ff58e6288dc9d3344c7e617 /fs/xfs/libxfs/xfs_errortag.h
parentxfs: support shrinking unused space in the last AG (diff)
downloadlinux-dev-2b92faed551173f065ee2a8cf087dc76cf40303b.tar.xz
linux-dev-2b92faed551173f065ee2a8cf087dc76cf40303b.zip
xfs: add error injection for per-AG resv failure
per-AG resv failure after fixing up freespace is hard to test in an effective way, so directly add an error injection path to observe such error handling path works as expected. Signed-off-by: Gao Xiang <hsiangkao@redhat.com> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/libxfs/xfs_errortag.h')
-rw-r--r--fs/xfs/libxfs/xfs_errortag.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_errortag.h b/fs/xfs/libxfs/xfs_errortag.h
index 6ca9084b6934..a23a52e643ad 100644
--- a/fs/xfs/libxfs/xfs_errortag.h
+++ b/fs/xfs/libxfs/xfs_errortag.h
@@ -58,7 +58,8 @@
#define XFS_ERRTAG_BUF_IOERROR 35
#define XFS_ERRTAG_REDUCE_MAX_IEXTENTS 36
#define XFS_ERRTAG_BMAP_ALLOC_MINLEN_EXTENT 37
-#define XFS_ERRTAG_MAX 38
+#define XFS_ERRTAG_AG_RESV_FAIL 38
+#define XFS_ERRTAG_MAX 39
/*
* Random factors for above tags, 1 means always, 2 means 1/2 time, etc.
@@ -101,5 +102,6 @@
#define XFS_RANDOM_BUF_IOERROR XFS_RANDOM_DEFAULT
#define XFS_RANDOM_REDUCE_MAX_IEXTENTS 1
#define XFS_RANDOM_BMAP_ALLOC_MINLEN_EXTENT 1
+#define XFS_RANDOM_AG_RESV_FAIL 1
#endif /* __XFS_ERRORTAG_H_ */