0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef SLOTMAP_H
0012 #define SLOTMAP_H
0013
0014 int ocfs2_init_slot_info(struct ocfs2_super *osb);
0015 void ocfs2_free_slot_info(struct ocfs2_super *osb);
0016
0017 int ocfs2_find_slot(struct ocfs2_super *osb);
0018 void ocfs2_put_slot(struct ocfs2_super *osb);
0019
0020 int ocfs2_refresh_slot_info(struct ocfs2_super *osb);
0021
0022 int ocfs2_node_num_to_slot(struct ocfs2_super *osb, unsigned int node_num);
0023 int ocfs2_slot_to_node_num_locked(struct ocfs2_super *osb, int slot_num,
0024 unsigned int *node_num);
0025
0026 int ocfs2_clear_slot(struct ocfs2_super *osb, int slot_num);
0027
0028 #endif