]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: improve local fork verification
authorChristoph Hellwig <hch@lst.de>
Thu, 14 May 2020 21:01:31 +0000 (14:01 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 19 May 2020 16:40:58 +0000 (09:40 -0700)
commitdc745e98af9d1ee3ccaa8688bcc923f41d94bd60
treec3ab5331914a34625abf757520b6c8a61fad6662
parentfb6a1d52a40332bde4042357b6c1f6c151aa8d89
xfs: improve local fork verification

Call the data/attr local fork verifiers as soon as we are ready for them.
This keeps them close to the code setting up the forks, and avoids a
few branches later on.  Also open code xfs_inode_verify_forks in the
only remaining 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>
fs/xfs/libxfs/xfs_inode_fork.c
fs/xfs/xfs_icache.c
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode.h
fs/xfs/xfs_inode_item_recover.c