aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosef Sipek <jsipek@fsl.cs.sunysb.edu>2006-12-08 05:37:10 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 11:28:46 -0500
commit1cfd6e648b5ea21b0d48bf6f18b129e4576557d5 (patch)
treef38dd0031c3a568087cdca633c86c81ecfa5dce3
parent4db61081fac72623eb638f918819046361ff1508 (diff)
[PATCH] struct path: convert infiniband
Signed-off-by: Josef Sipek <jsipek@fsl.cs.sunysb.edu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--drivers/infiniband/core/uverbs_main.c6
-rw-r--r--drivers/infiniband/hw/ipath/ipath_file_ops.c4
-rw-r--r--drivers/infiniband/hw/ipath/ipath_fs.c10
3 files changed, 10 insertions, 10 deletions
diff --git a/drivers/infiniband/core/uverbs_main.c b/drivers/infiniband/core/uverbs_main.c
index 4e16314e8e6d..a617ca7b6923 100644
--- a/drivers/infiniband/core/uverbs_main.c
+++ b/drivers/infiniband/core/uverbs_main.c
@@ -534,9 +534,9 @@ struct file *ib_uverbs_alloc_event_file(struct ib_uverbs_file *uverbs_file,
534 * module reference. 534 * module reference.
535 */ 535 */
536 filp->f_op = fops_get(&uverbs_event_fops); 536 filp->f_op = fops_get(&uverbs_event_fops);
537 filp->f_vfsmnt = mntget(uverbs_event_mnt); 537 filp->f_path.mnt = mntget(uverbs_event_mnt);
538 filp->f_dentry = dget(uverbs_event_mnt->mnt_root); 538 filp->f_path.dentry = dget(uverbs_event_mnt->mnt_root);
539 filp->f_mapping = filp->f_dentry->d_inode->i_mapping; 539 filp->f_mapping = filp->f_path.dentry->d_inode->i_mapping;
540 filp->f_flags = O_RDONLY; 540 filp->f_flags = O_RDONLY;
541 filp->f_mode = FMODE_READ; 541 filp->f_mode = FMODE_READ;
542 filp->private_data = ev_file; 542 filp->private_data = ev_file;
diff --git a/drivers/infiniband/hw/ipath/ipath_file_ops.c b/drivers/infiniband/hw/ipath/ipath_file_ops.c
index a9ddc6911f66..340f27e3ebff 100644
--- a/drivers/infiniband/hw/ipath/ipath_file_ops.c
+++ b/drivers/infiniband/hw/ipath/ipath_file_ops.c
@@ -1745,9 +1745,9 @@ static int ipath_assign_port(struct file *fp,
1745 goto done; 1745 goto done;
1746 } 1746 }
1747 1747
1748 i_minor = iminor(fp->f_dentry->d_inode) - IPATH_USER_MINOR_BASE; 1748 i_minor = iminor(fp->f_path.dentry->d_inode) - IPATH_USER_MINOR_BASE;
1749 ipath_cdbg(VERBOSE, "open on dev %lx (minor %d)\n", 1749 ipath_cdbg(VERBOSE, "open on dev %lx (minor %d)\n",
1750 (long)fp->f_dentry->d_inode->i_rdev, i_minor); 1750 (long)fp->f_path.dentry->d_inode->i_rdev, i_minor);
1751 1751
1752 if (i_minor) 1752 if (i_minor)
1753 ret = find_free_port(i_minor - 1, fp, uinfo); 1753 ret = find_free_port(i_minor - 1, fp, uinfo);
diff --git a/drivers/infiniband/hw/ipath/ipath_fs.c b/drivers/infiniband/hw/ipath/ipath_fs.c
index d9ff283f725e..79a60f020a21 100644
--- a/drivers/infiniband/hw/ipath/ipath_fs.c
+++ b/drivers/infiniband/hw/ipath/ipath_fs.c
@@ -118,7 +118,7 @@ static ssize_t atomic_counters_read(struct file *file, char __user *buf,
118 u16 i; 118 u16 i;
119 struct ipath_devdata *dd; 119 struct ipath_devdata *dd;
120 120
121 dd = file->f_dentry->d_inode->i_private; 121 dd = file->f_path.dentry->d_inode->i_private;
122 122
123 for (i = 0; i < NUM_COUNTERS; i++) 123 for (i = 0; i < NUM_COUNTERS; i++)
124 counters[i] = ipath_snap_cntr(dd, i); 124 counters[i] = ipath_snap_cntr(dd, i);
@@ -138,7 +138,7 @@ static ssize_t atomic_node_info_read(struct file *file, char __user *buf,
138 struct ipath_devdata *dd; 138 struct ipath_devdata *dd;
139 u64 guid; 139 u64 guid;
140 140
141 dd = file->f_dentry->d_inode->i_private; 141 dd = file->f_path.dentry->d_inode->i_private;
142 142
143 guid = be64_to_cpu(dd->ipath_guid); 143 guid = be64_to_cpu(dd->ipath_guid);
144 144
@@ -177,7 +177,7 @@ static ssize_t atomic_port_info_read(struct file *file, char __user *buf,
177 u32 tmp, tmp2; 177 u32 tmp, tmp2;
178 struct ipath_devdata *dd; 178 struct ipath_devdata *dd;
179 179
180 dd = file->f_dentry->d_inode->i_private; 180 dd = file->f_path.dentry->d_inode->i_private;
181 181
182 /* so we only initialize non-zero fields. */ 182 /* so we only initialize non-zero fields. */
183 memset(portinfo, 0, sizeof portinfo); 183 memset(portinfo, 0, sizeof portinfo);
@@ -324,7 +324,7 @@ static ssize_t flash_read(struct file *file, char __user *buf,
324 goto bail; 324 goto bail;
325 } 325 }
326 326
327 dd = file->f_dentry->d_inode->i_private; 327 dd = file->f_path.dentry->d_inode->i_private;
328 if (ipath_eeprom_read(dd, pos, tmp, count)) { 328 if (ipath_eeprom_read(dd, pos, tmp, count)) {
329 ipath_dev_err(dd, "failed to read from flash\n"); 329 ipath_dev_err(dd, "failed to read from flash\n");
330 ret = -ENXIO; 330 ret = -ENXIO;
@@ -377,7 +377,7 @@ static ssize_t flash_write(struct file *file, const char __user *buf,
377 goto bail_tmp; 377 goto bail_tmp;
378 } 378 }
379 379
380 dd = file->f_dentry->d_inode->i_private; 380 dd = file->f_path.dentry->d_inode->i_private;
381 if (ipath_eeprom_write(dd, pos, tmp, count)) { 381 if (ipath_eeprom_write(dd, pos, tmp, count)) {
382 ret = -ENXIO; 382 ret = -ENXIO;
383 ipath_dev_err(dd, "failed to write to flash\n"); 383 ipath_dev_err(dd, "failed to write to flash\n");