ocfs2: Decrement refcount when truncating refcounted extents.
authorTao Ma <tao.ma@oracle.com>
Tue, 18 Aug 2009 03:29:12 +0000 (11:29 +0800)
committerJoel Becker <joel.becker@oracle.com>
Wed, 23 Sep 2009 03:09:35 +0000 (20:09 -0700)
commitbcbbb24a6a5c5b3e7b8e5284e0bfa23f45c32377
treee45a6cfd75cd8005fdf280c2f5f57c09186249dd
parent1aa75fea64bc26bda9be9b1b20ae253d7a481877
ocfs2: Decrement refcount when truncating refcounted extents.

Add 'Decrement refcount for delete' in to the normal truncate
process. So for a refcounted extent record, call refcount rec
decrementation instead of cluster free.

Signed-off-by: Tao Ma <tao.ma@oracle.com>
fs/ocfs2/alloc.c
fs/ocfs2/journal.h
fs/ocfs2/refcounttree.c
fs/ocfs2/refcounttree.h