ocfs2: Add ac_alloc_slot in ocfs2_alloc_context
In inode stealing, we no longer restrict the allocation to happen in the local node. So it is neccessary for us to add a new member in ocfs2_alloc_context to indicate which slot we are using for allocation. We also modify the process of local alloc so that this member can be used there also. Signed-off-by: Tao Ma <tao.ma@oracle.com> Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com> Signed-off-by: Mark Fasheh <mfasheh@suse.com>
This commit is contained in:
@@ -36,6 +36,7 @@ typedef int (group_search_t)(struct inode *,
|
||||
struct ocfs2_alloc_context {
|
||||
struct inode *ac_inode; /* which bitmap are we allocating from? */
|
||||
struct buffer_head *ac_bh; /* file entry bh */
|
||||
u32 ac_alloc_slot; /* which slot are we allocating from? */
|
||||
u32 ac_bits_wanted;
|
||||
u32 ac_bits_given;
|
||||
#define OCFS2_AC_USE_LOCAL 1
|
||||
|
Reference in New Issue
Block a user