alloc.h (d9a0a1f83bf083b55b3c1f16efddecc31abace61) | alloc.h (3d03a305ded8057155bd3c801e64ffef9f534827) |
---|---|
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. --- 72 unchanged lines hidden (view full) --- 81 struct inode *inode, 82 struct buffer_head *bh); 83 84/* 85 * Read an extent block into *bh. If *bh is NULL, a bh will be 86 * allocated. This is a cached read. The extent block will be validated 87 * with ocfs2_validate_extent_block(). 88 */ | 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. --- 72 unchanged lines hidden (view full) --- 81 struct inode *inode, 82 struct buffer_head *bh); 83 84/* 85 * Read an extent block into *bh. If *bh is NULL, a bh will be 86 * allocated. This is a cached read. The extent block will be validated 87 * with ocfs2_validate_extent_block(). 88 */ |
89int ocfs2_read_extent_block(struct inode *inode, u64 eb_blkno, | 89int ocfs2_read_extent_block(struct ocfs2_caching_info *ci, u64 eb_blkno, |
90 struct buffer_head **bh); 91 92struct ocfs2_alloc_context; 93int ocfs2_insert_extent(struct ocfs2_super *osb, 94 handle_t *handle, 95 struct inode *inode, 96 struct ocfs2_extent_tree *et, 97 u32 cpos, --- 29 unchanged lines hidden (view full) --- 127 struct ocfs2_alloc_context *meta_ac, 128 struct ocfs2_cached_dealloc_ctxt *dealloc); 129int ocfs2_remove_btree_range(struct inode *inode, 130 struct ocfs2_extent_tree *et, 131 u32 cpos, u32 phys_cpos, u32 len, 132 struct ocfs2_cached_dealloc_ctxt *dealloc); 133 134int ocfs2_num_free_extents(struct ocfs2_super *osb, | 90 struct buffer_head **bh); 91 92struct ocfs2_alloc_context; 93int ocfs2_insert_extent(struct ocfs2_super *osb, 94 handle_t *handle, 95 struct inode *inode, 96 struct ocfs2_extent_tree *et, 97 u32 cpos, --- 29 unchanged lines hidden (view full) --- 127 struct ocfs2_alloc_context *meta_ac, 128 struct ocfs2_cached_dealloc_ctxt *dealloc); 129int ocfs2_remove_btree_range(struct inode *inode, 130 struct ocfs2_extent_tree *et, 131 u32 cpos, u32 phys_cpos, u32 len, 132 struct ocfs2_cached_dealloc_ctxt *dealloc); 133 134int ocfs2_num_free_extents(struct ocfs2_super *osb, |
135 struct inode *inode, | |
136 struct ocfs2_extent_tree *et); 137 138/* 139 * how many new metadata chunks would an allocation need at maximum? 140 * 141 * Please note that the caller must make sure that root_el is the root 142 * of extent tree. So for an inode, it should be &fe->id2.i_list. Otherwise 143 * the result may be wrong. --- 116 unchanged lines hidden --- | 135 struct ocfs2_extent_tree *et); 136 137/* 138 * how many new metadata chunks would an allocation need at maximum? 139 * 140 * Please note that the caller must make sure that root_el is the root 141 * of extent tree. So for an inode, it should be &fe->id2.i_list. Otherwise 142 * the result may be wrong. --- 116 unchanged lines hidden --- |