xfs: factor out attr fork reset handling