ocfs2: release the buffer head in ocfs2_do_truncate.
commit60e2ec48665b8495360ca4a6004c5cd52beb2bc1
authorTao Ma <tao.ma@oracle.com>
Wed, 12 Aug 2009 06:42:47 +0000 (12 14:42 +0800)
committerJoel Becker <joel.becker@oracle.com>
Mon, 17 Aug 2009 19:50:35 +0000 (17 12:50 -0700)
treedbd938e337b3191bbe16336cb414b9d55c5fdc81
parentada508274b8698a33cb0e5bd037db0f9dc781795
ocfs2: release the buffer head in ocfs2_do_truncate.

In ocfs2_do_truncate, we forget to release last_eb_bh which
will cause memleak. So call brelse in the end.

Signed-off-by: Tao Ma <tao.ma@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/alloc.c