]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4fadc4cf24e4f02ce36b25500a220381748b72d0
treee0198268750bf8679fbeff8a5ebd6c9c2b4c66d6
parent69ce7e277a1ff4147418e9427f56ea40b32c1c75
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