The text has a much better version of mm_malloc (page 750).
This file is also available on the student part of the web site for your text book.
You can get a copy directly to your Linux by using the wget command:
wget http://csapp.cs.cmu.edu/public/ics2/code/vm/malloc/mm.c