The Mortgage Debt Relief Act of 2007 generally allows taxpayers to exclude income from the discharge of debt on their principal residence. Debt reduced through mortgage restructuring, as well as mortgage debt forgiven in connection with a foreclosure, qualifies for the relief. Your situation would be considered mortgage restructuring and would qualify for the relief.
If this was helpful please press the Accept button. It is the only way we receive any credit for helping with these questions.
Thank you gkracer