]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: move all scrub input checking to xfs_scrub_validate
authorEric Sandeen <sandeen@sandeen.net>
Mon, 8 Jan 2018 18:41:34 +0000 (10:41 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 8 Jan 2018 18:41:34 +0000 (10:41 -0800)
commiteaebcc5b5d69370dabbb2f575651e6be97807911
tree72e9763760d7b31e7d6a77fdf485073b3b87b10c
parent495d868f7aa7a0f63d4ee0af9986d11743181b11
xfs: move all scrub input checking to xfs_scrub_validate

There were ad-hoc checks for some scrub types but not others;
mark each scrub type with ... it's type, and use that to validate
the allowed and/or required input fields.

Moving these checks out of xfs_scrub_setup_ag_header makes it
a thin wrapper, so unwrap it in the process.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
[darrick: add xfs_ prefix to enum, check scrub args after checking type]
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/scrub/agheader.c
fs/xfs/scrub/common.c
fs/xfs/scrub/common.h
fs/xfs/scrub/quota.c
fs/xfs/scrub/rtbitmap.c
fs/xfs/scrub/scrub.c
fs/xfs/scrub/scrub.h