From: Kaixu Xia Date: Thu, 12 Nov 2020 22:20:38 +0000 (-0500) Subject: xfs: remove the redundant crc feature check in xfs_attr3_rmt_verify X-Git-Tag: v5.10.0-rc0~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02408cf038e534eaf8dc3cc98818cf4dba5250a2;p=thirdparty%2Fxfsprogs-dev.git xfs: remove the redundant crc feature check in xfs_attr3_rmt_verify Source kernel commit: 3feb4ffbf69321284dc78ac6ca43b4a2afadf243 We already check whether the crc feature is enabled before calling xfs_attr3_rmt_verify(), so remove the redundant feature check in that function. Signed-off-by: Kaixu Xia Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig Signed-off-by: Eric Sandeen --- diff --git a/libxfs/xfs_attr_remote.c b/libxfs/xfs_attr_remote.c index f09ea295e..3807cd3de 100644 --- a/libxfs/xfs_attr_remote.c +++ b/libxfs/xfs_attr_remote.c @@ -95,8 +95,6 @@ xfs_attr3_rmt_verify( { struct xfs_attr3_rmt_hdr *rmt = ptr; - if (!xfs_sb_version_hascrc(&mp->m_sb)) - return __this_address; if (!xfs_verify_magic(bp, rmt->rm_magic)) return __this_address; if (!uuid_equal(&rmt->rm_uuid, &mp->m_sb.sb_meta_uuid))