From: Paul Mundt Date: Thu, 8 Jan 2009 12:04:48 +0000 (+0000) Subject: NOMMU: Teach kobjsize() about VMA regions. X-Git-Tag: v2.6.29-rc1~22^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab2e83ead4eca9e045daac4cbf66eb1e7a244bb2;p=pandora-kernel.git 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 Signed-off-by: David Howells Tested-by: Mike Frysinger --- Reading git-diff-tree failed