free_page

Xavier Leclercq (xavierleclercq@email.com)
Wed, 13 Oct 1999 18:44:17 +0200


I'm reading the implementation of the buddy algorithm.
I was wondering what happens if someone tries to free a block of order k
while one
of the buddies of order k-1 which make this block is already free and
the other isn't.
>From the implementation, it seems to me that this will lead to an
incorrect behaviour but I'm not sure of my interpretation.

So I would like to know :
Is this allowed ? Or should one make sure not to free already free
blocks ?

Thanks in advance.

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