Re: [PATCH -mm] Revoke core code: fix nommu arch compiling error bug

Pekka J Enberg
2007-03-26T10:37:53Z

On Mon, 26 Mar 2007, Wu, Bryan wrote:
> As struct mm_struct vm_mm is hidden in struct vm_area_struct in NOMMU
> arch, this is a fixing method when compiling failure on blackfin arch.

What compile error is that? I don't see any #ifdef around ->vm_mm for
struct vm_area_struct in <linux/mm.h>.

On Mon, 26 Mar 2007, Wu, Bryan wrote:
> + if (!mm)
> + return -ENOENT;
> +
> details.i_mmap_lock = &mapping->i_mmap_lock;

This means you won't be able to revoke memory mapped files with no-MMU.
I'd rather fix it properly if someone can give me a clue how mmap works on
non-MMU.

Pekka