Messages in this thread | | | Date | Thu, 11 Mar 1999 13:38:26 -0800 (PST) | From | Linus Torvalds <> | Subject | Re: FIXED: 3Dfx module broken on 2.2.3 |
| |
On Thu, 11 Mar 1999, Tigran Aivazian wrote: > > The code at the end should look like this: > > #ifdef KERNEL_VER_2_1 > vma->vm_file = file; > /* file->f_count++; */ > #else > vma->vm_inode = inode; > inode->i_count++; > #endif
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/
| |