lkml.org 
[lkml]   [1999]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.070 / U:1.280 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site