diff options
author | Tao Ma <tao.ma@oracle.com> | 2009-08-17 23:24:49 -0400 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2009-09-22 23:09:33 -0400 |
commit | 1823cb0b9fe5e6d48017ee3f92428f69c0235d87 (patch) | |
tree | 461e5d6cc255c400acac69dd968fae935a9c073f /fs/ocfs2/refcounttree.h | |
parent | e73a819db9c2d6c4065b7cab7374709b6939e8f1 (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/refcounttree.h')
-rw-r--r-- | fs/ocfs2/refcounttree.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/ocfs2/refcounttree.h b/fs/ocfs2/refcounttree.h index 2ea7fc52c23c..ad4b483ec5c7 100644 --- a/fs/ocfs2/refcounttree.h +++ b/fs/ocfs2/refcounttree.h | |||
@@ -40,4 +40,9 @@ int ocfs2_lock_refcount_tree(struct ocfs2_super *osb, u64 ref_blkno, int rw, | |||
40 | void ocfs2_unlock_refcount_tree(struct ocfs2_super *osb, | 40 | void ocfs2_unlock_refcount_tree(struct ocfs2_super *osb, |
41 | struct ocfs2_refcount_tree *tree, | 41 | struct ocfs2_refcount_tree *tree, |
42 | int rw); | 42 | int rw); |
43 | |||
44 | int ocfs2_decrease_refcount(struct inode *inode, | ||
45 | handle_t *handle, u32 cpos, u32 len, | ||
46 | struct ocfs2_alloc_context *meta_ac, | ||
47 | struct ocfs2_cached_dealloc_ctxt *dealloc); | ||
43 | #endif /* OCFS2_REFCOUNTTREE_H */ | 48 | #endif /* OCFS2_REFCOUNTTREE_H */ |