patch-2.1.45 linux/drivers/sound/soundcard.c
Next file: linux/fs/Config.in
Previous file: linux/drivers/sound/Config.in
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Mon Jul 14 10:37:05 1997
- Orig file:
v2.1.44/linux/drivers/sound/soundcard.c
- Orig date:
Mon Jun 16 16:35:56 1997
diff -u --recursive --new-file v2.1.44/linux/drivers/sound/soundcard.c linux/drivers/sound/soundcard.c
@@ -246,7 +246,7 @@
struct inode *inode;
int ret = 0;
- inode = file->f_inode;
+ inode = file->f_dentry->d_inode;
if (sound_select (inode, file, SEL_IN, wait))
ret |= POLLIN;
@@ -326,8 +326,7 @@
vma->vm_page_prot))
return -EAGAIN;
- vma->vm_inode = inode;
- atomic_inc(&inode->i_count);
+ vma->vm_dentry = dget(file->f_dentry);
dmap->mapping_flags |= DMA_MAP_MAPPED;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov