xfs: collapse cases in xfs_attr3_leaf_list_int
authorEric Sandeen <sandeen@sandeen.net>
Tue, 5 Apr 2016 21:57:47 +0000 (07:57 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 5 Apr 2016 21:57:47 +0000 (07:57 +1000)
commit3ab3ffcaca99e0b77480d77bd393fc227b09069f
tree6814f8e68961f16659116de9407756f64fb60add
parent7af5ad28a603f2d1ef4c579b8ab0a9d4767a348e
xfs: collapse cases in xfs_attr3_leaf_list_int

Consolidate the 2 calls to ->put_listent in
xfs_attr3_leaf_list_int(), by setting up name, namelen, and
valuelen for the local vs remote cases, then call ->put_listent
and do the error handling all in one spot.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
fs/xfs/xfs_attr_list.c