alloc.h (5e96581a377fc6bd76e9b112da9aeb8a7ae8bf22) | alloc.h (13723d00e374c2a6d6ccb5af6de965e89c3e1b01) |
---|---|
1/* -*- mode: c; c-basic-offset: 8; -*- 2 * vim: noexpandtab sw=8 ts=8 sts=0: 3 * 4 * alloc.h 5 * 6 * Function prototypes 7 * 8 * Copyright (C) 2002, 2004 Oracle. All rights reserved. --- 31 unchanged lines hidden (view full) --- 40 * and operation. 41 * 42 * ocfs2_extent_tree becomes the first-class object for extent tree 43 * manipulation. Callers of the alloc.c code need to fill it via one of 44 * the ocfs2_init_*_extent_tree() operations below. 45 * 46 * ocfs2_extent_tree contains info for the root of the b-tree, it must have a 47 * root ocfs2_extent_list and a root_bh so that they can be used in the b-tree | 1/* -*- mode: c; c-basic-offset: 8; -*- 2 * vim: noexpandtab sw=8 ts=8 sts=0: 3 * 4 * alloc.h 5 * 6 * Function prototypes 7 * 8 * Copyright (C) 2002, 2004 Oracle. All rights reserved. --- 31 unchanged lines hidden (view full) --- 40 * and operation. 41 * 42 * ocfs2_extent_tree becomes the first-class object for extent tree 43 * manipulation. Callers of the alloc.c code need to fill it via one of 44 * the ocfs2_init_*_extent_tree() operations below. 45 * 46 * ocfs2_extent_tree contains info for the root of the b-tree, it must have a 47 * root ocfs2_extent_list and a root_bh so that they can be used in the b-tree |
48 * functions. | 48 * functions. With metadata ecc, we now call different journal_access 49 * functions for each type of metadata, so it must have the 50 * root_journal_access function. |
49 * ocfs2_extent_tree_operations abstract the normal operations we do for 50 * the root of extent b-tree. 51 */ 52struct ocfs2_extent_tree_operations; 53struct ocfs2_extent_tree { 54 struct ocfs2_extent_tree_operations *et_ops; 55 struct buffer_head *et_root_bh; 56 struct ocfs2_extent_list *et_root_el; | 51 * ocfs2_extent_tree_operations abstract the normal operations we do for 52 * the root of extent b-tree. 53 */ 54struct ocfs2_extent_tree_operations; 55struct ocfs2_extent_tree { 56 struct ocfs2_extent_tree_operations *et_ops; 57 struct buffer_head *et_root_bh; 58 struct ocfs2_extent_list *et_root_el; |
59 ocfs2_journal_access_func et_root_journal_access; |
|
57 void *et_object; 58 unsigned int et_max_leaf_clusters; 59}; 60 61/* 62 * ocfs2_init_*_extent_tree() will fill an ocfs2_extent_tree from the 63 * specified object buffer. 64 */ --- 187 unchanged lines hidden --- | 60 void *et_object; 61 unsigned int et_max_leaf_clusters; 62}; 63 64/* 65 * ocfs2_init_*_extent_tree() will fill an ocfs2_extent_tree from the 66 * specified object buffer. 67 */ --- 187 unchanged lines hidden --- |