]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: refactor xfs_inode_verify_forks
authorChristoph Hellwig <hch@lst.de>
Mon, 10 Aug 2020 20:32:06 +0000 (16:32 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Mon, 10 Aug 2020 20:32:06 +0000 (16:32 -0400)
commit318d12fd6043fa78d0026a5ad74f2c98c0375520
tree3a7d6cc037cd74dd2aa97ee04b986a92dfff051f
parent1fecabf9cfe67d1d692196e169d800cf918a3360
xfs: refactor xfs_inode_verify_forks

Source kernel commit: 7c7ba2186305d6bee5eb5b8fb95a61d8de14de4f

The split between xfs_inode_verify_forks and the two helpers
implementing the actual functionality is a little strange.  Reshuffle
it so that xfs_inode_verify_forks verifies if the data and attr forks
are actually in local format and only call the low-level helpers if
that is the case.  Handle the actual error reporting in the low-level
handlers to streamline the caller.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/rdwr.c
libxfs/xfs_inode_fork.c
libxfs/xfs_inode_fork.h