aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/suballoc.h
diff options
context:
space:
mode:
authorTiger Yang <tiger.yang@oracle.com>2008-08-18 05:11:00 -0400
committerMark Fasheh <mfasheh@suse.com>2008-10-13 19:57:02 -0400
commitcf1d6c763fbcb115263114302485ad17e7933d87 (patch)
tree85717dc9d20b7ac1e31b683653933f2d30099f44 /fs/ocfs2/suballoc.h
parentfdd77704a8b4666a32120fcd1e4a9fedaf3263d8 (diff)
ocfs2: Add extended attribute support
This patch implements storing extended attributes both in inode or a single external block. We only store EA's in-inode when blocksize > 512 or that inode block has free space for it. When an EA's value is larger than 80 bytes, we will store the value via b-tree outside inode or block. Signed-off-by: Tiger Yang <tiger.yang@oracle.com> Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/suballoc.h')
-rw-r--r--fs/ocfs2/suballoc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ocfs2/suballoc.h b/fs/ocfs2/suballoc.h
index 9e026c8afee4..028fd633b44e 100644
--- a/fs/ocfs2/suballoc.h
+++ b/fs/ocfs2/suballoc.h
@@ -67,6 +67,9 @@ static inline int ocfs2_alloc_context_bits_left(struct ocfs2_alloc_context *ac)
67int ocfs2_reserve_new_metadata(struct ocfs2_super *osb, 67int ocfs2_reserve_new_metadata(struct ocfs2_super *osb,
68 struct ocfs2_extent_list *root_el, 68 struct ocfs2_extent_list *root_el,
69 struct ocfs2_alloc_context **ac); 69 struct ocfs2_alloc_context **ac);
70int ocfs2_reserve_new_metadata_blocks(struct ocfs2_super *osb,
71 int blocks,
72 struct ocfs2_alloc_context **ac);
70int ocfs2_reserve_new_inode(struct ocfs2_super *osb, 73int ocfs2_reserve_new_inode(struct ocfs2_super *osb,
71 struct ocfs2_alloc_context **ac); 74 struct ocfs2_alloc_context **ac);
72int ocfs2_reserve_clusters(struct ocfs2_super *osb, 75int ocfs2_reserve_clusters(struct ocfs2_super *osb,