aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/alloc.h
diff options
context:
space:
mode:
authorTao Ma <tao.ma@oracle.com>2008-08-18 05:38:42 -0400
committerMark Fasheh <mfasheh@suse.com>2008-10-13 16:57:58 -0400
commit231b87d10920e024efaf0f9e86e1bab7bced1620 (patch)
tree00283dfb9e4a7054576be8a073635dc51bdc4e22 /fs/ocfs2/alloc.h
parent9a8ff578fb430a8816dfbc73c77e5e09c6d9c343 (diff)
ocfs2: Modify ocfs2_num_free_extents for future xattr usage.
ocfs2_num_free_extents() is used to find the number of free extent records in an inode btree. Hence, it takes an "ocfs2_dinode" parameter. We want to use this for extended attribute trees in the future, so genericize the interface the take a buffer head. A future patch will allow that buffer_head to contain any structure rooting an ocfs2 btree. Signed-off-by: Tao Ma <tao.ma@oracle.com> Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/alloc.h')
-rw-r--r--fs/ocfs2/alloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/alloc.h b/fs/ocfs2/alloc.h
index 60cd3d59230c..5c0f764b59ec 100644
--- a/fs/ocfs2/alloc.h
+++ b/fs/ocfs2/alloc.h
@@ -47,7 +47,7 @@ int ocfs2_remove_extent(struct inode *inode, struct buffer_head *di_bh,
47 struct ocfs2_cached_dealloc_ctxt *dealloc); 47 struct ocfs2_cached_dealloc_ctxt *dealloc);
48int ocfs2_num_free_extents(struct ocfs2_super *osb, 48int ocfs2_num_free_extents(struct ocfs2_super *osb,
49 struct inode *inode, 49 struct inode *inode,
50 struct ocfs2_dinode *fe); 50 struct buffer_head *bh);
51/* how many new metadata chunks would an allocation need at maximum? */ 51/* how many new metadata chunks would an allocation need at maximum? */
52static inline int ocfs2_extend_meta_needed(struct ocfs2_dinode *fe) 52static inline int ocfs2_extend_meta_needed(struct ocfs2_dinode *fe)
53{ 53{