forked from Minki/linux
ocfs2: use all extent block suballocators
Now that we have a method to deallocate blocks from them, each node should allocate extent blocks from their local suballocator file. Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
This commit is contained in:
parent
59a5e416d1
commit
1f6697d072
@ -386,13 +386,7 @@ static int ocfs2_create_new_meta_bhs(struct ocfs2_super *osb,
|
|||||||
strcpy(eb->h_signature, OCFS2_EXTENT_BLOCK_SIGNATURE);
|
strcpy(eb->h_signature, OCFS2_EXTENT_BLOCK_SIGNATURE);
|
||||||
eb->h_blkno = cpu_to_le64(first_blkno);
|
eb->h_blkno = cpu_to_le64(first_blkno);
|
||||||
eb->h_fs_generation = cpu_to_le32(osb->fs_generation);
|
eb->h_fs_generation = cpu_to_le32(osb->fs_generation);
|
||||||
|
|
||||||
#ifndef OCFS2_USE_ALL_METADATA_SUBALLOCATORS
|
|
||||||
/* we always use slot zero's suballocator */
|
|
||||||
eb->h_suballoc_slot = 0;
|
|
||||||
#else
|
|
||||||
eb->h_suballoc_slot = cpu_to_le16(osb->slot_num);
|
eb->h_suballoc_slot = cpu_to_le16(osb->slot_num);
|
||||||
#endif
|
|
||||||
eb->h_suballoc_bit = cpu_to_le16(suballoc_bit_start);
|
eb->h_suballoc_bit = cpu_to_le16(suballoc_bit_start);
|
||||||
eb->h_list.l_count =
|
eb->h_list.l_count =
|
||||||
cpu_to_le16(ocfs2_extent_recs_per_eb(osb->sb));
|
cpu_to_le16(ocfs2_extent_recs_per_eb(osb->sb));
|
||||||
|
@ -488,13 +488,7 @@ int ocfs2_reserve_new_metadata(struct ocfs2_super *osb,
|
|||||||
|
|
||||||
(*ac)->ac_bits_wanted = ocfs2_extend_meta_needed(fe);
|
(*ac)->ac_bits_wanted = ocfs2_extend_meta_needed(fe);
|
||||||
(*ac)->ac_which = OCFS2_AC_USE_META;
|
(*ac)->ac_which = OCFS2_AC_USE_META;
|
||||||
|
|
||||||
#ifndef OCFS2_USE_ALL_METADATA_SUBALLOCATORS
|
|
||||||
slot = 0;
|
|
||||||
#else
|
|
||||||
slot = osb->slot_num;
|
slot = osb->slot_num;
|
||||||
#endif
|
|
||||||
|
|
||||||
(*ac)->ac_group_search = ocfs2_block_group_search;
|
(*ac)->ac_group_search = ocfs2_block_group_search;
|
||||||
|
|
||||||
status = ocfs2_reserve_suballoc_bits(osb, (*ac),
|
status = ocfs2_reserve_suballoc_bits(osb, (*ac),
|
||||||
|
Loading…
Reference in New Issue
Block a user