xfs: get rid of the ip parameter to xchk_setup_*

Now that the scrub context stores a pointer to the file that was used to
invoke the scrub call, the struct xfs_inode pointer that we passed to
all the setup functions is no longer necessary.  This is only ever used
if the caller wants us to scrub the metadata of the open file.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
Darrick J. Wong
2021-04-07 17:59:39 -07:00
parent 71bddbccab
commit 026f57ebe1
19 changed files with 61 additions and 93 deletions

View File

@@ -20,12 +20,11 @@
/* Set us up with the realtime metadata locked. */
int
xchk_setup_rt(
struct xfs_scrub *sc,
struct xfs_inode *ip)
struct xfs_scrub *sc)
{
int error;
error = xchk_setup_fs(sc, ip);
error = xchk_setup_fs(sc);
if (error)
return error;