aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/slot_map.h
diff options
context:
space:
mode:
authorMark Fasheh <mfasheh@suse.com>2008-02-01 14:59:09 -0500
committerMark Fasheh <mfasheh@suse.com>2008-04-18 11:56:02 -0400
commit8e8a4603b5422c9145880e73b23bc4c2c4de0098 (patch)
tree4d388ae74ed9e5f8cfec19ff20d07d81ca742592 /fs/ocfs2/slot_map.h
parent4b119e21d0c66c22e8ca03df05d9de623d0eb50f (diff)
ocfs2: Move slot map access into slot_map.c
journal.c and dlmglue.c would refresh the slot map by hand. Instead, have the update and clear functions do the work inside slot_map.c. The eventual result is to make ocfs2_slot_info defined privately in slot_map.c Signed-off-by: Joel Becker <joel.becker@oracle.com> Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/slot_map.h')
-rw-r--r--fs/ocfs2/slot_map.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/fs/ocfs2/slot_map.h b/fs/ocfs2/slot_map.h
index 1025872aaade..b029ffdc8ea5 100644
--- a/fs/ocfs2/slot_map.h
+++ b/fs/ocfs2/slot_map.h
@@ -30,7 +30,7 @@
30struct ocfs2_slot_info { 30struct ocfs2_slot_info {
31 spinlock_t si_lock; 31 spinlock_t si_lock;
32 32
33 struct inode *si_inode; 33 struct inode *si_inode;
34 struct buffer_head *si_bh; 34 struct buffer_head *si_bh;
35 unsigned int si_num_slots; 35 unsigned int si_num_slots;
36 unsigned int si_size; 36 unsigned int si_size;
@@ -38,19 +38,16 @@ struct ocfs2_slot_info {
38}; 38};
39 39
40int ocfs2_init_slot_info(struct ocfs2_super *osb); 40int ocfs2_init_slot_info(struct ocfs2_super *osb);
41void ocfs2_free_slot_info(struct ocfs2_slot_info *si); 41void ocfs2_free_slot_info(struct ocfs2_super *osb);
42 42
43int ocfs2_find_slot(struct ocfs2_super *osb); 43int ocfs2_find_slot(struct ocfs2_super *osb);
44void ocfs2_put_slot(struct ocfs2_super *osb); 44void ocfs2_put_slot(struct ocfs2_super *osb);
45 45
46void ocfs2_update_slot_info(struct ocfs2_slot_info *si); 46int ocfs2_refresh_slot_info(struct ocfs2_super *osb);
47int ocfs2_update_disk_slots(struct ocfs2_super *osb,
48 struct ocfs2_slot_info *si);
49 47
50s16 ocfs2_node_num_to_slot(struct ocfs2_slot_info *si, 48s16 ocfs2_node_num_to_slot(struct ocfs2_slot_info *si,
51 s16 global); 49 s16 global);
52void ocfs2_clear_slot(struct ocfs2_slot_info *si, 50int ocfs2_clear_slot(struct ocfs2_super *osb, s16 slot_num);
53 s16 slot_num);
54 51
55static inline int ocfs2_is_empty_slot(struct ocfs2_slot_info *si, 52static inline int ocfs2_is_empty_slot(struct ocfs2_slot_info *si,
56 int slot_num) 53 int slot_num)