; Tang, Guifang; Chen, LinX Z; Andrew Morton
Subject: Re: Avoid high order memory allocating with kmalloc, when read large
seq file
On Tue, 29 Jan 2013, xtu4 wrote:
> Subject: [PATCH] [SEQ_FILE] Avoid high order memory allocating with
> kmalloc when read large seq file
>
> cur
n.org]
Sent: Wednesday, January 30, 2013 8:25 AM
To: Tu, Xiaobing
Cc: linux-kernel@vger.kernel.org; Tang, Guifang; Chen, LinX Z; Arve Hjønnevåg
Subject: Re: Avoid high order memory allocating with kmalloc, when read large
seq file
On Tue, 29 Jan 2013 14:14:14 +0800
xtu4 wrote:
> @@ -209,8
On Tue, 29 Jan 2013 14:14:14 +0800
xtu4 wrote:
> @@ -209,8 +209,17 @@ ssize_t seq_read(struct file *file, char __user
> *buf, size_t size, loff_t *ppos)
> if (m->count < m->size)
> goto Fill;
> m->op->stop(m, p);
> -kfree(m->buf);
> -m->buf = kma
On Tue, 29 Jan 2013, xtu4 wrote:
> Subject: [PATCH] [SEQ_FILE] Avoid high order memory allocating with kmalloc
> when read large seq file
>
> currently, when dumpstate access /proc/xxx/binder , this binder include lots
> of info,
> it will use seq_read in kernel, in this function, it will trigge
4 matches
Mail list logo