Re: [patch 4/21] mm: refund memory for a locked buffer

From: Oleg Nesterov
Date: Tue Mar 31 2009 - 20:27:29 EST


On 03/31, Markus Metzger wrote:
>
> -void release_locked_buffer(void *buffer, size_t size)
> +void refund_locked_buffer_memory(struct mm_struct *mm, size_t size)

Hmm. Again, this is not bisect friendly, afaoics the kernel can't be
compiled with this patch. Irenames release_locked_buffer(), but we still
have callers (fixed by the next patches).

> void free_locked_buffer(void *buffer, size_t size)
> {
> - release_locked_buffer(buffer, size);
> -
> + refund_locked_buffer_memory(current->mm, size);
> kfree(buffer);
> }

And this one has no callers after the next patches?

Oleg.

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