Re: [RFC][PATCH] rbind across namespaces

From: Jamie Lokier
Date: Sat May 21 2005 - 08:45:48 EST


Ram wrote:
> > Also why check current->namespace? It doesn't hurt to do
> > get_namespace() even if it's not strictly needed. And it would
> > simplify the code.
>
> however get_namespace() will chew up some extra cycles
> sometimes unnecessarily. I did incorporate your comment and
> got much simpler code.

Checking current->namespace also chews up extra cycles, sometimes
unnecessarily, but the cycles are negligable in both cases.

Because they're negligable, the most important thing is to avoid
unnecessary complications in the code.

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