xfs: Factor out new helper functions xfs_attr_rmtval_set
authorAllison Collins <allison.henderson@oracle.com>
Tue, 21 Jul 2020 04:47:23 +0000 (21:47 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 29 Jul 2020 03:28:10 +0000 (20:28 -0700)
commit1a485fc1e96533587e2eab0e4d60798035528b7a
treedef1582cb35660a8e86a9791788863e166b23b0d
parentdeed9512872d094ad1eae4abd0ff1c674df251d5
xfs: Factor out new helper functions xfs_attr_rmtval_set

Break xfs_attr_rmtval_set into two helper functions
xfs_attr_rmt_find_hole and xfs_attr_rmtval_set_value.
xfs_attr_rmtval_set rolls the transaction between the helpers, but
delayed operations cannot.  We will use the helpers later when
constructing new delayed attribute routines.

Signed-off-by: Allison Collins <allison.henderson@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Chandan Rajendra <chandanrlinux@gmail.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Acked-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/libxfs/xfs_attr_remote.c