Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 1 | /* |
John Gregor | 87427da | 2007-06-11 10:21:14 -0700 | [diff] [blame] | 2 | * Copyright (c) 2006, 2007 QLogic Corporation. All rights reserved. |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 3 | * Copyright (c) 2006 PathScale, Inc. All rights reserved. |
| 4 | * |
| 5 | * This software is available to you under a choice of one of two |
| 6 | * licenses. You may choose to be licensed under the terms of the GNU |
| 7 | * General Public License (GPL) Version 2, available from the file |
| 8 | * COPYING in the main directory of this source tree, or the |
| 9 | * OpenIB.org BSD license below: |
| 10 | * |
| 11 | * Redistribution and use in source and binary forms, with or |
| 12 | * without modification, are permitted provided that the following |
| 13 | * conditions are met: |
| 14 | * |
| 15 | * - Redistributions of source code must retain the above |
| 16 | * copyright notice, this list of conditions and the following |
| 17 | * disclaimer. |
| 18 | * |
| 19 | * - Redistributions in binary form must reproduce the above |
| 20 | * copyright notice, this list of conditions and the following |
| 21 | * disclaimer in the documentation and/or other materials |
| 22 | * provided with the distribution. |
| 23 | * |
| 24 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 25 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 26 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 27 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS |
| 28 | * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN |
| 29 | * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| 30 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 31 | * SOFTWARE. |
| 32 | */ |
| 33 | |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 34 | #include <linux/module.h> |
| 35 | #include <linux/fs.h> |
| 36 | #include <linux/mount.h> |
| 37 | #include <linux/pagemap.h> |
| 38 | #include <linux/init.h> |
| 39 | #include <linux/namei.h> |
Tejun Heo | 5a0e3ad | 2010-03-24 17:04:11 +0900 | [diff] [blame] | 40 | #include <linux/slab.h> |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 41 | |
| 42 | #include "ipath_kernel.h" |
| 43 | |
| 44 | #define IPATHFS_MAGIC 0x726a77 |
| 45 | |
| 46 | static struct super_block *ipath_super; |
| 47 | |
| 48 | static int ipathfs_mknod(struct inode *dir, struct dentry *dentry, |
Arjan van de Ven | 2b8693c | 2007-02-12 00:55:32 -0800 | [diff] [blame] | 49 | int mode, const struct file_operations *fops, |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 50 | void *data) |
| 51 | { |
| 52 | int error; |
| 53 | struct inode *inode = new_inode(dir->i_sb); |
| 54 | |
| 55 | if (!inode) { |
| 56 | error = -EPERM; |
| 57 | goto bail; |
| 58 | } |
| 59 | |
| 60 | inode->i_mode = mode; |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 61 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |
Theodore Ts'o | 8e18e29 | 2006-09-27 01:50:46 -0700 | [diff] [blame] | 62 | inode->i_private = data; |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 63 | if ((mode & S_IFMT) == S_IFDIR) { |
| 64 | inode->i_op = &simple_dir_inode_operations; |
Dave Hansen | d8c76e6 | 2006-09-30 23:29:04 -0700 | [diff] [blame] | 65 | inc_nlink(inode); |
| 66 | inc_nlink(dir); |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 67 | } |
| 68 | |
| 69 | inode->i_fop = fops; |
| 70 | |
| 71 | d_instantiate(dentry, inode); |
| 72 | error = 0; |
| 73 | |
| 74 | bail: |
| 75 | return error; |
| 76 | } |
| 77 | |
| 78 | static int create_file(const char *name, mode_t mode, |
| 79 | struct dentry *parent, struct dentry **dentry, |
Arjan van de Ven | 2b8693c | 2007-02-12 00:55:32 -0800 | [diff] [blame] | 80 | const struct file_operations *fops, void *data) |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 81 | { |
| 82 | int error; |
| 83 | |
| 84 | *dentry = NULL; |
| 85 | mutex_lock(&parent->d_inode->i_mutex); |
| 86 | *dentry = lookup_one_len(name, parent, strlen(name)); |
Michael Ellerman | 64f22fa | 2008-12-01 20:59:07 -0800 | [diff] [blame] | 87 | if (!IS_ERR(*dentry)) |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 88 | error = ipathfs_mknod(parent->d_inode, *dentry, |
| 89 | mode, fops, data); |
| 90 | else |
| 91 | error = PTR_ERR(dentry); |
| 92 | mutex_unlock(&parent->d_inode->i_mutex); |
| 93 | |
| 94 | return error; |
| 95 | } |
| 96 | |
| 97 | static ssize_t atomic_stats_read(struct file *file, char __user *buf, |
| 98 | size_t count, loff_t *ppos) |
| 99 | { |
| 100 | return simple_read_from_buffer(buf, count, ppos, &ipath_stats, |
| 101 | sizeof ipath_stats); |
| 102 | } |
| 103 | |
Arjan van de Ven | 2b8693c | 2007-02-12 00:55:32 -0800 | [diff] [blame] | 104 | static const struct file_operations atomic_stats_ops = { |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 105 | .read = atomic_stats_read, |
Arnd Bergmann | 6038f37 | 2010-08-15 18:52:59 +0200 | [diff] [blame^] | 106 | .llseek = default_llseek, |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 107 | }; |
| 108 | |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 109 | static ssize_t atomic_counters_read(struct file *file, char __user *buf, |
| 110 | size_t count, loff_t *ppos) |
| 111 | { |
Ralph Campbell | 3029fcc | 2008-01-06 21:02:34 -0800 | [diff] [blame] | 112 | struct infinipath_counters counters; |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 113 | struct ipath_devdata *dd; |
| 114 | |
Josef Sipek | 1cfd6e6 | 2006-12-08 02:37:10 -0800 | [diff] [blame] | 115 | dd = file->f_path.dentry->d_inode->i_private; |
Ralph Campbell | 3029fcc | 2008-01-06 21:02:34 -0800 | [diff] [blame] | 116 | dd->ipath_f_read_counters(dd, &counters); |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 117 | |
Ralph Campbell | 3029fcc | 2008-01-06 21:02:34 -0800 | [diff] [blame] | 118 | return simple_read_from_buffer(buf, count, ppos, &counters, |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 119 | sizeof counters); |
| 120 | } |
| 121 | |
Arjan van de Ven | 2b8693c | 2007-02-12 00:55:32 -0800 | [diff] [blame] | 122 | static const struct file_operations atomic_counters_ops = { |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 123 | .read = atomic_counters_read, |
Arnd Bergmann | 6038f37 | 2010-08-15 18:52:59 +0200 | [diff] [blame^] | 124 | .llseek = default_llseek, |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 125 | }; |
| 126 | |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 127 | static ssize_t flash_read(struct file *file, char __user *buf, |
| 128 | size_t count, loff_t *ppos) |
| 129 | { |
| 130 | struct ipath_devdata *dd; |
| 131 | ssize_t ret; |
| 132 | loff_t pos; |
| 133 | char *tmp; |
| 134 | |
| 135 | pos = *ppos; |
| 136 | |
| 137 | if ( pos < 0) { |
| 138 | ret = -EINVAL; |
| 139 | goto bail; |
| 140 | } |
| 141 | |
| 142 | if (pos >= sizeof(struct ipath_flash)) { |
| 143 | ret = 0; |
| 144 | goto bail; |
| 145 | } |
| 146 | |
| 147 | if (count > sizeof(struct ipath_flash) - pos) |
| 148 | count = sizeof(struct ipath_flash) - pos; |
| 149 | |
| 150 | tmp = kmalloc(count, GFP_KERNEL); |
| 151 | if (!tmp) { |
| 152 | ret = -ENOMEM; |
| 153 | goto bail; |
| 154 | } |
| 155 | |
Josef Sipek | 1cfd6e6 | 2006-12-08 02:37:10 -0800 | [diff] [blame] | 156 | dd = file->f_path.dentry->d_inode->i_private; |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 157 | if (ipath_eeprom_read(dd, pos, tmp, count)) { |
| 158 | ipath_dev_err(dd, "failed to read from flash\n"); |
| 159 | ret = -ENXIO; |
| 160 | goto bail_tmp; |
| 161 | } |
| 162 | |
| 163 | if (copy_to_user(buf, tmp, count)) { |
| 164 | ret = -EFAULT; |
| 165 | goto bail_tmp; |
| 166 | } |
| 167 | |
| 168 | *ppos = pos + count; |
| 169 | ret = count; |
| 170 | |
| 171 | bail_tmp: |
| 172 | kfree(tmp); |
| 173 | |
| 174 | bail: |
| 175 | return ret; |
| 176 | } |
| 177 | |
| 178 | static ssize_t flash_write(struct file *file, const char __user *buf, |
| 179 | size_t count, loff_t *ppos) |
| 180 | { |
| 181 | struct ipath_devdata *dd; |
| 182 | ssize_t ret; |
| 183 | loff_t pos; |
| 184 | char *tmp; |
| 185 | |
| 186 | pos = *ppos; |
| 187 | |
Bryan O'Sullivan | 7dae5bf | 2006-09-28 09:00:05 -0700 | [diff] [blame] | 188 | if (pos != 0) { |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 189 | ret = -EINVAL; |
| 190 | goto bail; |
| 191 | } |
| 192 | |
Bryan O'Sullivan | 7dae5bf | 2006-09-28 09:00:05 -0700 | [diff] [blame] | 193 | if (count != sizeof(struct ipath_flash)) { |
| 194 | ret = -EINVAL; |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 195 | goto bail; |
| 196 | } |
| 197 | |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 198 | tmp = kmalloc(count, GFP_KERNEL); |
| 199 | if (!tmp) { |
| 200 | ret = -ENOMEM; |
| 201 | goto bail; |
| 202 | } |
| 203 | |
| 204 | if (copy_from_user(tmp, buf, count)) { |
| 205 | ret = -EFAULT; |
| 206 | goto bail_tmp; |
| 207 | } |
| 208 | |
Josef Sipek | 1cfd6e6 | 2006-12-08 02:37:10 -0800 | [diff] [blame] | 209 | dd = file->f_path.dentry->d_inode->i_private; |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 210 | if (ipath_eeprom_write(dd, pos, tmp, count)) { |
| 211 | ret = -ENXIO; |
| 212 | ipath_dev_err(dd, "failed to write to flash\n"); |
| 213 | goto bail_tmp; |
| 214 | } |
| 215 | |
| 216 | *ppos = pos + count; |
| 217 | ret = count; |
| 218 | |
| 219 | bail_tmp: |
| 220 | kfree(tmp); |
| 221 | |
| 222 | bail: |
| 223 | return ret; |
| 224 | } |
| 225 | |
Arjan van de Ven | 2b8693c | 2007-02-12 00:55:32 -0800 | [diff] [blame] | 226 | static const struct file_operations flash_ops = { |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 227 | .read = flash_read, |
| 228 | .write = flash_write, |
Arnd Bergmann | 6038f37 | 2010-08-15 18:52:59 +0200 | [diff] [blame^] | 229 | .llseek = default_llseek, |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 230 | }; |
| 231 | |
| 232 | static int create_device_files(struct super_block *sb, |
| 233 | struct ipath_devdata *dd) |
| 234 | { |
| 235 | struct dentry *dir, *tmp; |
| 236 | char unit[10]; |
| 237 | int ret; |
| 238 | |
| 239 | snprintf(unit, sizeof unit, "%02d", dd->ipath_unit); |
| 240 | ret = create_file(unit, S_IFDIR|S_IRUGO|S_IXUGO, sb->s_root, &dir, |
Jan Engelhardt | f7fca1e | 2008-01-22 20:45:30 +0100 | [diff] [blame] | 241 | &simple_dir_operations, dd); |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 242 | if (ret) { |
| 243 | printk(KERN_ERR "create_file(%s) failed: %d\n", unit, ret); |
| 244 | goto bail; |
| 245 | } |
| 246 | |
| 247 | ret = create_file("atomic_counters", S_IFREG|S_IRUGO, dir, &tmp, |
| 248 | &atomic_counters_ops, dd); |
| 249 | if (ret) { |
| 250 | printk(KERN_ERR "create_file(%s/atomic_counters) " |
| 251 | "failed: %d\n", unit, ret); |
| 252 | goto bail; |
| 253 | } |
| 254 | |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 255 | ret = create_file("flash", S_IFREG|S_IWUSR|S_IRUGO, dir, &tmp, |
| 256 | &flash_ops, dd); |
| 257 | if (ret) { |
| 258 | printk(KERN_ERR "create_file(%s/flash) " |
| 259 | "failed: %d\n", unit, ret); |
| 260 | goto bail; |
| 261 | } |
| 262 | |
| 263 | bail: |
| 264 | return ret; |
| 265 | } |
| 266 | |
Bryan O'Sullivan | fae8773 | 2007-03-21 15:18:14 -0700 | [diff] [blame] | 267 | static int remove_file(struct dentry *parent, char *name) |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 268 | { |
| 269 | struct dentry *tmp; |
Bryan O'Sullivan | fae8773 | 2007-03-21 15:18:14 -0700 | [diff] [blame] | 270 | int ret; |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 271 | |
| 272 | tmp = lookup_one_len(name, parent, strlen(name)); |
| 273 | |
Bryan O'Sullivan | fae8773 | 2007-03-21 15:18:14 -0700 | [diff] [blame] | 274 | if (IS_ERR(tmp)) { |
| 275 | ret = PTR_ERR(tmp); |
| 276 | goto bail; |
| 277 | } |
| 278 | |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 279 | spin_lock(&dcache_lock); |
| 280 | spin_lock(&tmp->d_lock); |
| 281 | if (!(d_unhashed(tmp) && tmp->d_inode)) { |
| 282 | dget_locked(tmp); |
| 283 | __d_drop(tmp); |
| 284 | spin_unlock(&tmp->d_lock); |
| 285 | spin_unlock(&dcache_lock); |
| 286 | simple_unlink(parent->d_inode, tmp); |
| 287 | } else { |
| 288 | spin_unlock(&tmp->d_lock); |
| 289 | spin_unlock(&dcache_lock); |
| 290 | } |
Bryan O'Sullivan | fae8773 | 2007-03-21 15:18:14 -0700 | [diff] [blame] | 291 | |
| 292 | ret = 0; |
| 293 | bail: |
| 294 | /* |
| 295 | * We don't expect clients to care about the return value, but |
| 296 | * it's there if they need it. |
| 297 | */ |
| 298 | return ret; |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 299 | } |
| 300 | |
| 301 | static int remove_device_files(struct super_block *sb, |
| 302 | struct ipath_devdata *dd) |
| 303 | { |
| 304 | struct dentry *dir, *root; |
| 305 | char unit[10]; |
| 306 | int ret; |
| 307 | |
| 308 | root = dget(sb->s_root); |
| 309 | mutex_lock(&root->d_inode->i_mutex); |
| 310 | snprintf(unit, sizeof unit, "%02d", dd->ipath_unit); |
| 311 | dir = lookup_one_len(unit, root, strlen(unit)); |
| 312 | |
| 313 | if (IS_ERR(dir)) { |
| 314 | ret = PTR_ERR(dir); |
| 315 | printk(KERN_ERR "Lookup of %s failed\n", unit); |
| 316 | goto bail; |
| 317 | } |
| 318 | |
| 319 | remove_file(dir, "flash"); |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 320 | remove_file(dir, "atomic_counters"); |
| 321 | d_delete(dir); |
| 322 | ret = simple_rmdir(root->d_inode, dir); |
| 323 | |
| 324 | bail: |
| 325 | mutex_unlock(&root->d_inode->i_mutex); |
| 326 | dput(root); |
| 327 | return ret; |
| 328 | } |
| 329 | |
| 330 | static int ipathfs_fill_super(struct super_block *sb, void *data, |
| 331 | int silent) |
| 332 | { |
| 333 | struct ipath_devdata *dd, *tmp; |
| 334 | unsigned long flags; |
| 335 | int ret; |
| 336 | |
| 337 | static struct tree_descr files[] = { |
Jeff Layton | 1a1c9bb | 2007-05-08 00:32:31 -0700 | [diff] [blame] | 338 | [2] = {"atomic_stats", &atomic_stats_ops, S_IRUGO}, |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 339 | {""}, |
| 340 | }; |
| 341 | |
| 342 | ret = simple_fill_super(sb, IPATHFS_MAGIC, files); |
| 343 | if (ret) { |
| 344 | printk(KERN_ERR "simple_fill_super failed: %d\n", ret); |
| 345 | goto bail; |
| 346 | } |
| 347 | |
| 348 | spin_lock_irqsave(&ipath_devs_lock, flags); |
| 349 | |
| 350 | list_for_each_entry_safe(dd, tmp, &ipath_dev_list, ipath_list) { |
| 351 | spin_unlock_irqrestore(&ipath_devs_lock, flags); |
| 352 | ret = create_device_files(sb, dd); |
Al Viro | 12e9a45 | 2010-01-25 18:44:58 -0500 | [diff] [blame] | 353 | if (ret) |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 354 | goto bail; |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 355 | spin_lock_irqsave(&ipath_devs_lock, flags); |
| 356 | } |
| 357 | |
| 358 | spin_unlock_irqrestore(&ipath_devs_lock, flags); |
| 359 | |
| 360 | bail: |
| 361 | return ret; |
| 362 | } |
| 363 | |
David Howells | 454e239 | 2006-06-23 02:02:57 -0700 | [diff] [blame] | 364 | static int ipathfs_get_sb(struct file_system_type *fs_type, int flags, |
| 365 | const char *dev_name, void *data, struct vfsmount *mnt) |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 366 | { |
David Howells | 454e239 | 2006-06-23 02:02:57 -0700 | [diff] [blame] | 367 | int ret = get_sb_single(fs_type, flags, data, |
| 368 | ipathfs_fill_super, mnt); |
| 369 | if (ret >= 0) |
| 370 | ipath_super = mnt->mnt_sb; |
| 371 | return ret; |
Bryan O'Sullivan | 3e9b4a5 | 2006-03-29 15:23:30 -0800 | [diff] [blame] | 372 | } |
| 373 | |
| 374 | static void ipathfs_kill_super(struct super_block *s) |
| 375 | { |
| 376 | kill_litter_super(s); |
| 377 | ipath_super = NULL; |
| 378 | } |
| 379 | |
| 380 | int ipathfs_add_device(struct ipath_devdata *dd) |
| 381 | { |
| 382 | int ret; |
| 383 | |
| 384 | if (ipath_super == NULL) { |
| 385 | ret = 0; |
| 386 | goto bail; |
| 387 | } |
| 388 | |
| 389 | ret = create_device_files(ipath_super, dd); |
| 390 | |
| 391 | bail: |
| 392 | return ret; |
| 393 | } |
| 394 | |
| 395 | int ipathfs_remove_device(struct ipath_devdata *dd) |
| 396 | { |
| 397 | int ret; |
| 398 | |
| 399 | if (ipath_super == NULL) { |
| 400 | ret = 0; |
| 401 | goto bail; |
| 402 | } |
| 403 | |
| 404 | ret = remove_device_files(ipath_super, dd); |
| 405 | |
| 406 | bail: |
| 407 | return ret; |
| 408 | } |
| 409 | |
| 410 | static struct file_system_type ipathfs_fs_type = { |
| 411 | .owner = THIS_MODULE, |
| 412 | .name = "ipathfs", |
| 413 | .get_sb = ipathfs_get_sb, |
| 414 | .kill_sb = ipathfs_kill_super, |
| 415 | }; |
| 416 | |
| 417 | int __init ipath_init_ipathfs(void) |
| 418 | { |
| 419 | return register_filesystem(&ipathfs_fs_type); |
| 420 | } |
| 421 | |
| 422 | void __exit ipath_exit_ipathfs(void) |
| 423 | { |
| 424 | unregister_filesystem(&ipathfs_fs_type); |
| 425 | } |