]> git.baikalelectronics.ru Git - kernel.git/commit
NOMMU: Teach kobjsize() about VMA regions.
authorPaul Mundt <lethal@linux-sh.org>
Thu, 8 Jan 2009 12:04:48 +0000 (12:04 +0000)
committerDavid Howells <dhowells@redhat.com>
Thu, 8 Jan 2009 12:04:48 +0000 (12:04 +0000)
commitf4999c65b004c946ae6b373f2c8d0702e6286ccc
tree0e42c62476d09a5b7389ba02eb093448af36c58b
parentd075275bb728b520c0b9afdd10a4c3e35b07bebc
NOMMU: Teach kobjsize() about VMA regions.

Now that we no longer use compound pages for all large allocations,
kobjsize() actively breaks things like binfmt_flat by always handing
back PAGE_SIZE for mmap'ed regions. Fix this up by looking up the
VMA region for non-compounds.

Ideally binfmt_flat wants to get rid of kobjsize() completely, but
this is an incremental step.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: David Howells <dhowells@redhat.com>
Tested-by: Mike Frysinger <vapier.adi@gmail.com>
mm/nommu.c