The costs of partition include reasonable expenses, including attorney's fees, necessarily incurred by a party for the common benefit in prosecuting or defending other actions or other proceedings for the protection, confirmation, or perfection of title, setting the boundaries, or making a survey of the property, with interest thereon at the legal rate from the time of making the expenditures.
Ca. Civ. Proc. Code § 874.020