On Mon, 14 Mar 2005 18:02:58 -0800, Andrew Morton <[EMAIL PROTECTED]> wrote: > Coywolf Qi Hunt <[EMAIL PROTECTED]> wrote: > > > > This oom_kill fix is to do mmput(mm) a bit earlier and returning 0 or 1 > > to indicate success or failure instead of returning mm_struct pointer. > > Why is this a "fix"? What bug is it fixing? >
It's at least a coding style improvement and lets the code be less obfuscated. It increases the system survival possibilities by doing mmput immediately and reduces the chances of oom killing another process unnecessarily, IMHO. Or rather rename "fix" to "cleanup". -- Coywolf Qi Hunt http://sosdg.org/~coywolf/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/