]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/ocfs2/localalloc.c
ocfs2: Add ac_alloc_slot in ocfs2_alloc_context
[linux-2.6-omap-h63xx.git] / fs / ocfs2 / localalloc.c
index ab83fd5624294561541dba9663f128336f296116..b6d07198118c9c3facb4dab1c2bb6359d39cbbcd 100644 (file)
@@ -523,6 +523,8 @@ int ocfs2_reserve_local_alloc_bits(struct ocfs2_super *osb,
        }
 
        ac->ac_inode = local_alloc_inode;
+       /* We should never use localalloc from another slot */
+       ac->ac_alloc_slot = osb->slot_num;
        ac->ac_which = OCFS2_AC_USE_LOCAL;
        get_bh(osb->local_alloc_bh);
        ac->ac_bh = osb->local_alloc_bh;