diff options
author | Tao Ma <tao.ma@oracle.com> | 2009-08-23 23:12:02 -0400 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2009-09-22 23:09:30 -0400 |
commit | 8bf396de984e68491569b49770e4fd7aca40ba65 (patch) | |
tree | 1c755fa7af20e14722378df729201e6f8497fadb /fs/ocfs2/journal.h | |
parent | 374a263e790c4de85844283c098810a92985f623 (diff) |
ocfs2: Basic tree root operation.
Add basic refcount tree root operation.
Signed-off-by: Tao Ma <tao.ma@oracle.com>
Diffstat (limited to 'fs/ocfs2/journal.h')
-rw-r--r-- | fs/ocfs2/journal.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/fs/ocfs2/journal.h b/fs/ocfs2/journal.h index b2dc125c6e9a..bd88c8b9f2fb 100644 --- a/fs/ocfs2/journal.h +++ b/fs/ocfs2/journal.h | |||
@@ -490,6 +490,20 @@ static inline int ocfs2_calc_dxi_expand_credits(struct super_block *sb) | |||
490 | return credits; | 490 | return credits; |
491 | } | 491 | } |
492 | 492 | ||
493 | /* inode update, new refcount block and its allocation credits. */ | ||
494 | #define OCFS2_REFCOUNT_TREE_CREATE_CREDITS (OCFS2_INODE_UPDATE_CREDITS + 1 \ | ||
495 | + OCFS2_SUBALLOC_ALLOC) | ||
496 | |||
497 | /* inode and the refcount block update. */ | ||
498 | #define OCFS2_REFCOUNT_TREE_SET_CREDITS (OCFS2_INODE_UPDATE_CREDITS + 1) | ||
499 | |||
500 | /* | ||
501 | * inode and the refcount block update. | ||
502 | * It doesn't include the credits for sub alloc change. | ||
503 | * So if we need to free the bit, OCFS2_SUBALLOC_FREE needs to be added. | ||
504 | */ | ||
505 | #define OCFS2_REFCOUNT_TREE_REMOVE_CREDITS (OCFS2_INODE_UPDATE_CREDITS + 1) | ||
506 | |||
493 | /* | 507 | /* |
494 | * Please note that the caller must make sure that root_el is the root | 508 | * Please note that the caller must make sure that root_el is the root |
495 | * of extent tree. So for an inode, it should be &fe->id2.i_list. Otherwise | 509 | * of extent tree. So for an inode, it should be &fe->id2.i_list. Otherwise |