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

Pavel Machek
2001-03-27T19:53:30Z

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