diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-11-29 04:24:35 +0300 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-11-29 04:24:35 +0300 |
commit | c2beff99eb03866df6fdbd3a93b08fd27eb8bf5c (patch) | |
tree | c3d0a1f8b6b0750cc5549d0e2a7c749d7d4bc821 /fs/xfs/xfs_trace.c | |
parent | 7dd73802f97d2a1602b1cf5c1d6623fb08cb15c5 (diff) | |
download | linux-c2beff99eb03866df6fdbd3a93b08fd27eb8bf5c.tar.xz |
xfs: add debug knob to slow down writeback for fun
Add a new error injection knob so that we can arbitrarily slow down
writeback to test for race conditions and aberrant reclaim behavior if
the writeback mechanisms are slow to issue writeback. This will enable
functional testing for the ifork sequence counters introduced in commit
745b3f76d1c8 ("xfs: maintain a sequence count for inode fork
manipulations").
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_trace.c')
-rw-r--r-- | fs/xfs/xfs_trace.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_trace.c b/fs/xfs/xfs_trace.c index d269ef57ff01..8a5dc1538aa8 100644 --- a/fs/xfs/xfs_trace.c +++ b/fs/xfs/xfs_trace.c @@ -34,6 +34,8 @@ #include "xfs_ag.h" #include "xfs_ag_resv.h" #include "xfs_error.h" +#include <linux/iomap.h> +#include "xfs_iomap.h" /* * We include this last to have the helpers above available for the trace |