[Ocfs2-devel] [PATCH 2/3] Add ac_alloc_slot in
ocfs2_alloc_context.V2
Mark Fasheh
mark.fasheh at oracle.com
Thu Feb 28 15:07:57 PST 2008
On Thu, Feb 28, 2008 at 02:59:48PM +0800, tao.ma wrote:
> 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 at oracle.com>
> ---
> fs/ocfs2/localalloc.c | 1 +
> fs/ocfs2/suballoc.c | 1 +
> fs/ocfs2/suballoc.h | 1 +
> 3 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/fs/ocfs2/localalloc.c b/fs/ocfs2/localalloc.c
> index add1ffd..250b4bc 100644
> --- a/fs/ocfs2/localalloc.c
> +++ b/fs/ocfs2/localalloc.c
> @@ -526,6 +526,7 @@ int ocfs2_reserve_local_alloc_bits(struct ocfs2_super *osb,
> }
>
> ac->ac_inode = local_alloc_inode;
> + ac->ac_alloc_slot = osb->slot_num;
Put a comment above this line:
/* We should never use localalloc from another slot */
I don't want someone to accidentally change that in the future.
--Mark
--
Mark Fasheh
Principal Software Developer, Oracle
mark.fasheh at oracle.com
More information about the Ocfs2-devel
mailing list