aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/alloc.c
diff options
context:
space:
mode:
authorTao Ma <tao.ma@oracle.com>2009-08-17 23:24:49 -0400
committerJoel Becker <joel.becker@oracle.com>2009-09-22 23:09:33 -0400
commit1823cb0b9fe5e6d48017ee3f92428f69c0235d87 (patch)
tree461e5d6cc255c400acac69dd968fae935a9c073f /fs/ocfs2/alloc.c
parente73a819db9c2d6c4065b7cab7374709b6939e8f1 (diff)
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>
Diffstat (limited to 'fs/ocfs2/alloc.c')
-rw-r--r--fs/ocfs2/alloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c
index 2c8ce32adf01..9dd68cd7b0ad 100644
--- a/fs/ocfs2/alloc.c
+++ b/fs/ocfs2/alloc.c
@@ -6522,9 +6522,9 @@ ocfs2_find_per_slot_free_list(int type,
6522 return fl; 6522 return fl;
6523} 6523}
6524 6524
6525static int ocfs2_cache_block_dealloc(struct ocfs2_cached_dealloc_ctxt *ctxt, 6525int ocfs2_cache_block_dealloc(struct ocfs2_cached_dealloc_ctxt *ctxt,
6526 int type, int slot, u64 blkno, 6526 int type, int slot, u64 blkno,
6527 unsigned int bit) 6527 unsigned int bit)
6528{ 6528{
6529 int ret; 6529 int ret;
6530 struct ocfs2_per_slot_free_list *fl; 6530 struct ocfs2_per_slot_free_list *fl;