Re: 230-objrmap fixes for 2.6.3-mjb2

From: Rik van Riel
Date: Thu Mar 04 2004 - 11:23:49 EST


On Thu, 4 Mar 2004, Christoph Hellwig wrote:

> void mlock_page(struct page *page)
> {
> if (!test_and_set_bit(PG_mlocked, &page->flags)
> remove_from_lru_if_there();
> atomic_inc(&page.some_union->mlock_count);
> }

Looks ok to me.

> if so that would help me greatly for xfs, but I'd also need a 2.4 variant..

I don't see why the same thing wouldn't work for 2.4 ...

--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

-
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/