Re: [PATCH (2.4)] atomic use count for proc_dir_entry

From: Jacob Luna Lundberg (jacob@velius.chaos2.org)
Date: Fri Nov 17 2000 - 03:35:03 EST


On Fri, 17 Nov 2000, Dan Aloni wrote:
> If you are right, I guess put_files_struct() of kernel/exit.c would
> have cleaned files_struct everytime someones called it.
> Everywhere in the kernel, objects are freed when
> atomic_dec_and_test() returns true.

Indeed, after studying the asm in question I think I see how it ticks.
What is the reasoning behind reversing the result of the test instead of
returning the new value of the counter?

(Thanks for taking time to set me straight on this. :)

-Jacob

-- 

Why you say you no bunny rabbit when you have little powder-puff tail? -- The Tasmanian Devil

- 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 : Thu Nov 23 2000 - 21:00:12 EST