What does "mattress" mean?

Mattress: (Hydraulic Engin.) A mass of interwoven brush, poles, etc., to protect a bank from being worn away by currents or waves.

Sources