[RFC] ext2_new_block() behaviour

From: Alexander Viro (viro@math.psu.edu)
Date: Tue Jan 02 2001 - 18:33:29 EST


        Folks, there is a pretty strange detail of the allocation policy -
if cylinder group has no free blocks past the goal ext2 tries very hard to
avoid allocation in the beginning of the group. I.e. order looks so:

        * goal
        * goal .. (goal+63) & ~63
        * goal .. end of cylinder group
        * cylinder groups past one that contains goal
        * cylinder groups before one that contains goal
        * beginning of cylinder group..goal-1

It looks somewhat fishy. What's the reason for such policy?
                                                        Cheers,
                                                                Al

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jan 07 2001 - 21:00:14 EST