Actually, don't even do the vm_file thing at all, just do something lile
#ifndef KERNEL_VER_2_1
vma->vm_inode = inode;
inode->i_count++;
#endif
as the generic mmap stuff does the vm_file initialization for you too.
Linus
-
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/