ocfs2: Add support of decrementing refcount for delete.

Given a physical cpos and length, decrement the refcount
in the tree. If the refcount for any portion of the extent goes
to zero, that portion is queued for freeing.

Signed-off-by: Tao Ma <tao.ma@oracle.com>
This commit is contained in:
Tao Ma
2009-08-18 11:24:49 +08:00
committato da Joel Becker
parent e73a819db9
commit 1823cb0b9f
4 ha cambiato i file con 265 aggiunte e 5 eliminazioni

Vedi File

@@ -6522,9 +6522,9 @@ ocfs2_find_per_slot_free_list(int type,
return fl;
}
static int ocfs2_cache_block_dealloc(struct ocfs2_cached_dealloc_ctxt *ctxt,
int type, int slot, u64 blkno,
unsigned int bit)
int ocfs2_cache_block_dealloc(struct ocfs2_cached_dealloc_ctxt *ctxt,
int type, int slot, u64 blkno,
unsigned int bit)
{
int ret;
struct ocfs2_per_slot_free_list *fl;