mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
xfs: remove the redundant crc feature check in xfs_attr3_rmt_verify
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 <kaixuxia@tencent.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
a647d109e0
commit
3feb4ffbf6
1 changed files with 0 additions and 2 deletions
|
@ -96,8 +96,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))
|
||||
|
|
Loading…
Reference in a new issue