xfs: Convert xfs_attr_sf macros to inline functions
authorCarlos Maiolino <cmaiolino@redhat.com>
Mon, 7 Sep 2020 15:08:50 +0000 (08:08 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 16 Sep 2020 03:52:42 +0000 (20:52 -0700)
commite01b7eed5d0a9b101da53701e92136c3985998af
treea8a0e88a1b1f20e493afc74afa49a396cacd17ca
parentc418dbc9805dbd215586454f0c5729333219aa63
xfs: Convert xfs_attr_sf macros to inline functions

xfs_attr_sf_totsize() requires access to xfs_inode structure, so, once
xfs_attr_shortform_addname() is its only user, move it to xfs_attr.c
instead of playing with more #includes.

Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_attr.c
fs/xfs/libxfs/xfs_attr_leaf.c
fs/xfs/libxfs/xfs_attr_sf.h
fs/xfs/xfs_attr_list.c