xfs: refactor extended attribute list operation
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 25 Oct 2017 23:59:42 +0000 (16:59 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 27 Oct 2017 16:20:31 +0000 (09:20 -0700)
commitbdaac93f80b84aad2dd9316a3ffb6626b86c13e0
tree3981bf034da0ca50ed53495a527fb8cbbd666597
parent9c92ee208b1faa0ef2cc899b85fd0607b6fac7fe
xfs: refactor extended attribute list operation

When we're iterating the attribute list and we can't find our previous
location based off the attribute cursor, we'll instead walk down the
attribute btree from the root trying to find where we left off.  Move
this code into a separate function for later cleanups.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/xfs_attr_list.c