The D5 is a very, very good diesel engine, just about on a par with BMW's diesel 6 imo.
You're kidding me surely?
I owned a S60 D5 for 18 months. Sure, it was reliable, but had the power of a BMW 4 cylinder, linked to the thirst of a BMW 6 and the smoothness of a London taxi when cold/stationary. Sure, it was "characterful", but IMO for all the wrong reasons.
As for the XC90, check Warranty Direct's Reliability Index, which is the closest I've seen to genuine stats on the objective costs of maintenance for cars. The XC90 was lousy, over 200 IIRC. I know it's not the same class of car, but the Honda CRV scored 45, and lower most certainly is better.