xfs: make errortag a per-mountpoint structure
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 21 Jun 2017 00:54:46 +0000 (17:54 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 28 Jun 2017 01:23:19 +0000 (18:23 -0700)
commit31965ef34802f49903bba06dd7c3b96a2e2ed4e4
treee0198268750bf8679fbeff8a5ebd6c9c2b4c66d6
parent39775431f82f890f4aaa08860a30883d081bffc7
xfs: make errortag a per-mountpoint structure

Remove the xfs_etest structure in favor of a per-mountpoint structure.
This will give us the flexibility to set as many error injection points
as we want, and later enable us to set up sysfs knobs to set the trigger
frequency as we wish.  This comes at a cost of higher memory use, but
unti we hit 1024 injection points (we're at 29) or a lot of mounts this
shouldn't be a huge issue.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
fs/xfs/xfs_error.c
fs/xfs/xfs_error.h
fs/xfs/xfs_ioctl.c
fs/xfs/xfs_mount.c
fs/xfs/xfs_mount.h