Re: [PATCH] depricate ZMAGIC binaries

Andrea Arcangeli (andrea@suse.de)
Mon, 24 May 1999 16:55:27 +0200 (CEST)


On 23 May 1999, Eric W. Biederman wrote:

>diff -uNrX linux-ignore-files linux-2.3.3.eb1/mm/filemap.c linux-2.3.3.eb2/mm/filemap.c
>--- linux-2.3.3.eb1/mm/filemap.c Tue May 18 01:11:52 1999
>+++ linux-2.3.3.eb2/mm/filemap.c Tue May 18 01:12:47 1999
>@@ -1319,8 +1319,7 @@
> return -EINVAL;
> } else {
> ops = &file_private_mmap;
>- if (inode->i_op && inode->i_op->bmap &&
>- (vma->vm_offset & (inode->i_sb->s_blocksize - 1)))
>+ if (vma->vm_offset & (PAGE_SIZE -1))
> return -EINVAL;

Minor issue: since now there is no difference in the align check between
VM_SHARED and VM_PRIVATE you can check the alignment in a common path.

Andrea Arcangeli

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/