xfs: factor out a xfs_attr_match helper
authorChristoph Hellwig <hch@lst.de>
Thu, 27 Feb 2020 01:30:36 +0000 (17:30 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 3 Mar 2020 04:55:53 +0000 (20:55 -0800)
commit377f16ac67237c8cda05daf363bcbea95212b000
treec4c4fb1e62c7d210535ea8f46559af4addbb502a
parent1d7330199400404512b44734d3c792aa4ad82322
xfs: factor out a xfs_attr_match helper

Factor out a helper that compares an on-disk attr vs the name, length and
flags specified in struct xfs_da_args.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Chandan Rajendra <chandanrlinux@gmail.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_attr_leaf.c