]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: refactor remote attr value buffer invalidation
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 5 Oct 2022 07:01:00 +0000 (12:31 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Oct 2022 07:16:56 +0000 (09:16 +0200)
commitb14f1f8d746ab85019b0b64b1573ce8d21796c2b
tree0b15cc8ae790274e39ba10d1e6af35546eac33c6
parent76f936e8e9666cff5ed91f5080eeb002f6905ec6
xfs: refactor remote attr value buffer invalidation

commit 80e8ef468743b488c4ed6afbe424df6dc81ccc0c upstream.

[Replaced XFS_IS_CORRUPT() calls with ASSERT() for 5.4.y backport]

Hoist the code that invalidates remote extended attribute value buffers
into a separate helper function.  This prepares us for a memory
corruption fix in the next patch.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandan.babu@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/libxfs/xfs_attr_remote.c
fs/xfs/libxfs/xfs_attr_remote.h