• Dave Chinner's avatar
    xfs: xfs_attr_set_iter() does not need to return EAGAIN · 4e3d96a5
    Dave Chinner authored
    Now that the full xfs_attr_set_iter() state machine always
    terminates with either the state being XFS_DAS_DONE on success or
    an error on failure, we can get rid of the need for it to return
    -EAGAIN whenever it needs to roll the transaction before running
    the next state.
    
    That is, we don't need to spray -EAGAIN return states everywhere,
    the caller just check the state machine state for completion to
    determine what action should be taken next. This greatly simplifies
    the code within the state machine implementation as it now only has
    to handle 0 for success or -errno for error and it doesn't need to
    tell the caller to retry.
    Signed-off-by: default avatarDave Chinner <dchinner@redhat.com>
    Reviewed-by: Allison Henderson<allison.henderson@oracle.com>
    Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>
    Signed-off-by: default avatarDave Chinner <david@fromorbit.com>
    4e3d96a5
xfs_attr_item.c 21.8 KB