Re: [PATCH] non-overcommit memory, improved OOM handling, safety margin (was Re: Prevent OOM from killing init)

Pavel Machek (pavel@suse.cz)
Tue, 27 Mar 2001 17:23:54 +0200


Hi!

> The attached patch is against 2.4.1 and incorporates the following:

The patch seems to be word-wrapped...
Pavel

> diff -ur -x via-rhine* linux-2.4.1.orig/fs/exec.c linux/fs/exec.c
> ---
> linux-2.4.1.orig/fs/exec.c Tue Jan 30 07:10:58 2001
> +++
> linux/fs/exec.c Sun Mar 25 17:05:03 2001
> @@ -385,19 +385,27 @@
> static int
> exec_mmap(void)
> {
> struct mm_struct * mm, * old_mm;
> + struct
> task_struct * tsk = current;
> + unsigned long reserved = 0;
>
> - old_mm =
> current->mm;

-- 
I'm pavel@ucw.cz. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at discuss@linmodems.org
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/