head	1.1;
access;
symbols
	LKML-branch:1.1.0.2;
locks; strict;
comment	@# @;


1.1
date	2006.10.24.04.54.58;	author jsipek;	state dead;
branches
	1.1.2.1;
next	;

1.1.2.1
date	2006.10.24.04.54.58;	author jsipek;	state Exp;
branches;
next	1.1.2.2;

1.1.2.2
date	2006.10.24.07.45.06;	author jsipek;	state Exp;
branches;
next	1.1.2.3;

1.1.2.3
date	2006.10.24.08.08.24;	author jsipek;	state Exp;
branches;
next	1.1.2.4;

1.1.2.4
date	2006.10.27.15.24.18;	author jsipek;	state dead;
branches;
next	;


desc
@@


1.1
log
@file sound was initially added on branch LKML-branch.
@
text
@@


1.1.2.1
log
@Fix remainder of the kernel's f_{dentry,vfsmnt} usage
@
text
@a0 117
diff -r ed8030e0f7d4 sound/core/info.c
--- a/sound/core/info.c	Mon Oct 23 15:11:02 2006 -0400
+++ b/sound/core/info.c	Mon Oct 23 23:27:31 2006 -0400
@@@@ -485,7 +485,7 @@@@ static long snd_info_entry_ioctl(struct 
 
 static int snd_info_entry_mmap(struct file *file, struct vm_area_struct *vma)
 {
-	struct inode *inode = file->f_dentry->d_inode;
+	struct inode *inode = file->f_path.dentry->d_inode;
 	struct snd_info_private_data *data;
 	struct snd_info_entry *entry;
 
diff -r ed8030e0f7d4 sound/core/pcm_native.c
--- a/sound/core/pcm_native.c	Mon Oct 23 15:11:02 2006 -0400
+++ b/sound/core/pcm_native.c	Mon Oct 23 23:27:32 2006 -0400
@@@@ -1602,7 +1602,7 @@@@ static struct file *snd_pcm_file_fd(int 
 	file = fget(fd);
 	if (!file)
 		return NULL;
-	inode = file->f_dentry->d_inode;
+	inode = file->f_path.dentry->d_inode;
 	if (!S_ISCHR(inode->i_mode) ||
 	    imajor(inode) != snd_major) {
 		fput(file);
diff -r ed8030e0f7d4 sound/oss/dmasound/dmasound_core.c
--- a/sound/oss/dmasound/dmasound_core.c	Mon Oct 23 15:11:02 2006 -0400
+++ b/sound/oss/dmasound/dmasound_core.c	Mon Oct 23 23:27:34 2006 -0400
@@@@ -1051,7 +1051,7 @@@@ static int sq_release(struct inode *inod
 
 	if (file->f_mode & FMODE_WRITE) {
 		if (write_sq.busy)
-			rc = sq_fsync(file, file->f_dentry);
+			rc = sq_fsync(file, file->f_path.dentry);
 
 		sq_reset_output() ; /* make sure dma is stopped and all is quiet */
 		write_sq_release_buffers();
@@@@ -1217,7 +1217,7 @@@@ static int sq_ioctl(struct inode *inode,
 		if ((file->f_mode & FMODE_READ) && dmasound.mach.record)
 			sq_reset_input() ;
 		if (file->f_mode & FMODE_WRITE) {
-			result = sq_fsync(file, file->f_dentry);
+			result = sq_fsync(file, file->f_path.dentry);
 			sq_reset_output() ;
 		}
 		/* if we are the shared resource owner then release them */
diff -r ed8030e0f7d4 sound/oss/msnd_pinnacle.c
--- a/sound/oss/msnd_pinnacle.c	Mon Oct 23 15:11:02 2006 -0400
+++ b/sound/oss/msnd_pinnacle.c	Mon Oct 23 23:27:34 2006 -0400
@@@@ -1007,7 +1007,7 @@@@ static int dsp_write(const char __user *
 
 static ssize_t dev_read(struct file *file, char __user *buf, size_t count, loff_t *off)
 {
-	int minor = iminor(file->f_dentry->d_inode);
+	int minor = iminor(file->f_path.dentry->d_inode);
 	if (minor == dev.dsp_minor)
 		return dsp_read(buf, count);
 	else
@@@@ -1016,7 +1016,7 @@@@ static ssize_t dev_read(struct file *fil
 
 static ssize_t dev_write(struct file *file, const char __user *buf, size_t count, loff_t *off)
 {
-	int minor = iminor(file->f_dentry->d_inode);
+	int minor = iminor(file->f_path.dentry->d_inode);
 	if (minor == dev.dsp_minor)
 		return dsp_write(buf, count);
 	else
diff -r ed8030e0f7d4 sound/oss/soundcard.c
--- a/sound/oss/soundcard.c	Mon Oct 23 15:11:02 2006 -0400
+++ b/sound/oss/soundcard.c	Mon Oct 23 23:27:35 2006 -0400
@@@@ -140,7 +140,7 @@@@ static int get_mixer_levels(void __user 
 
 static ssize_t sound_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)
 {
-	int dev = iminor(file->f_dentry->d_inode);
+	int dev = iminor(file->f_path.dentry->d_inode);
 	int ret = -EINVAL;
 
 	/*
@@@@ -173,7 +173,7 @@@@ static ssize_t sound_read(struct file *f
 
 static ssize_t sound_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos)
 {
-	int dev = iminor(file->f_dentry->d_inode);
+	int dev = iminor(file->f_path.dentry->d_inode);
 	int ret = -EINVAL;
 	
 	lock_kernel();
@@@@ -392,7 +392,7 @@@@ static int sound_ioctl(struct inode *ino
 
 static unsigned int sound_poll(struct file *file, poll_table * wait)
 {
-	struct inode *inode = file->f_dentry->d_inode;
+	struct inode *inode = file->f_path.dentry->d_inode;
 	int dev = iminor(inode);
 
 	DEB(printk("sound_poll(dev=%d)\n", dev));
@@@@ -417,7 +417,7 @@@@ static int sound_mmap(struct file *file,
 	int dev_class;
 	unsigned long size;
 	struct dma_buffparms *dmap = NULL;
-	int dev = iminor(file->f_dentry->d_inode);
+	int dev = iminor(file->f_path.dentry->d_inode);
 
 	dev_class = dev & 0x0f;
 	dev >>= 4;
diff -r ed8030e0f7d4 sound/sound_firmware.c
--- a/sound/sound_firmware.c	Mon Oct 23 15:11:02 2006 -0400
+++ b/sound/sound_firmware.c	Mon Oct 23 23:27:39 2006 -0400
@@@@ -19,7 +19,7 @@@@ static int do_mod_firmware_load(const ch
 		printk(KERN_INFO "Unable to load '%s'.\n", fn);
 		return 0;
 	}
-	l = filp->f_dentry->d_inode->i_size;
+	l = filp->f_path.dentry->d_inode->i_size;
 	if (l <= 0 || l > 131072)
 	{
 		printk(KERN_INFO "Invalid firmware '%s'\n", fn);
@


1.1.2.2
log
@reorder, rename and add descriptions to the remainder of f_{dentry,vfsmnt}
patches
@
text
@a0 8
sound: change uses of f_{dentry,vfsmnt} to use f_path

This patch changes all the uses of f_{dentry,vfsmnt} to f_path.{dentry,mnt}
in the sound subsystem.

Cc: perex@@suse.cz
Signed-off-by: Josef "Jeff" Sipek <jsipek@@cs.sunysb.edu>

@


1.1.2.3
log
@Added "From:" lines
@
text
@a2 2
From: Josef "Jeff" Sipek <jsipek@@cs.sunysb.edu>

@


1.1.2.4
log
@Remove old copies of the struct_file patches
@
text
@@


