xfs: refactor extended attribute buffer pointer functions
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 5 Jul 2019 17:29:55 +0000 (10:29 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 5 Jul 2019 17:29:55 +0000 (10:29 -0700)
commit3addd248800c0d278900c064e54e611ae505c622
tree62da59ea5aeaba89ac7546e20fe0a21c309c7cef
parent2c3b83d7ca6d73b9478afc86c89377c15a90b9ed
xfs: refactor extended attribute buffer pointer functions

Replace the open-coded attribute buffer pointer calculations with helper
functions to make it more obvious what we're doing with our freeform
memory allocation w.r.t. either storing xattr values or computing btree
block free space.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/scrub/attr.c
fs/xfs/scrub/attr.h [new file with mode: 0644]