proc.c (2d8ad8719591fa803b0d589ed057fa46f49b7155) | proc.c (d9dda78bad879595d8c4220a067fc029d6484a16) |
---|---|
1/* /proc interface for AFS 2 * 3 * Copyright (C) 2002 Red Hat, Inc. All Rights Reserved. 4 * Written by David Howells (dhowells@redhat.com) 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation; either version --- 176 unchanged lines hidden (view full) --- 185 struct seq_file *m; 186 int ret; 187 188 ret = seq_open(file, &afs_proc_cells_ops); 189 if (ret < 0) 190 return ret; 191 192 m = file->private_data; | 1/* /proc interface for AFS 2 * 3 * Copyright (C) 2002 Red Hat, Inc. All Rights Reserved. 4 * Written by David Howells (dhowells@redhat.com) 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation; either version --- 176 unchanged lines hidden (view full) --- 185 struct seq_file *m; 186 int ret; 187 188 ret = seq_open(file, &afs_proc_cells_ops); 189 if (ret < 0) 190 return ret; 191 192 m = file->private_data; |
193 m->private = PDE(inode)->data; | 193 m->private = PDE_DATA(inode); |
194 195 return 0; 196} 197 198/* 199 * set up the iterator to start reading from the cells list and return the 200 * first item 201 */ --- 241 unchanged lines hidden (view full) --- 443 * open "/proc/fs/afs/<cell>/volumes" which provides a summary of extant cells 444 */ 445static int afs_proc_cell_volumes_open(struct inode *inode, struct file *file) 446{ 447 struct afs_cell *cell; 448 struct seq_file *m; 449 int ret; 450 | 194 195 return 0; 196} 197 198/* 199 * set up the iterator to start reading from the cells list and return the 200 * first item 201 */ --- 241 unchanged lines hidden (view full) --- 443 * open "/proc/fs/afs/<cell>/volumes" which provides a summary of extant cells 444 */ 445static int afs_proc_cell_volumes_open(struct inode *inode, struct file *file) 446{ 447 struct afs_cell *cell; 448 struct seq_file *m; 449 int ret; 450 |
451 cell = PDE(inode)->data; | 451 cell = PDE_DATA(inode); |
452 if (!cell) 453 return -ENOENT; 454 455 ret = seq_open(file, &afs_proc_cell_volumes_ops); 456 if (ret < 0) 457 return ret; 458 459 m = file->private_data; --- 89 unchanged lines hidden (view full) --- 549 * location server 550 */ 551static int afs_proc_cell_vlservers_open(struct inode *inode, struct file *file) 552{ 553 struct afs_cell *cell; 554 struct seq_file *m; 555 int ret; 556 | 452 if (!cell) 453 return -ENOENT; 454 455 ret = seq_open(file, &afs_proc_cell_volumes_ops); 456 if (ret < 0) 457 return ret; 458 459 m = file->private_data; --- 89 unchanged lines hidden (view full) --- 549 * location server 550 */ 551static int afs_proc_cell_vlservers_open(struct inode *inode, struct file *file) 552{ 553 struct afs_cell *cell; 554 struct seq_file *m; 555 int ret; 556 |
557 cell = PDE(inode)->data; | 557 cell = PDE_DATA(inode); |
558 if (!cell) 559 return -ENOENT; 560 561 ret = seq_open(file, &afs_proc_cell_vlservers_ops); 562 if (ret<0) 563 return ret; 564 565 m = file->private_data; --- 88 unchanged lines hidden (view full) --- 654 * servers 655 */ 656static int afs_proc_cell_servers_open(struct inode *inode, struct file *file) 657{ 658 struct afs_cell *cell; 659 struct seq_file *m; 660 int ret; 661 | 558 if (!cell) 559 return -ENOENT; 560 561 ret = seq_open(file, &afs_proc_cell_vlservers_ops); 562 if (ret<0) 563 return ret; 564 565 m = file->private_data; --- 88 unchanged lines hidden (view full) --- 654 * servers 655 */ 656static int afs_proc_cell_servers_open(struct inode *inode, struct file *file) 657{ 658 struct afs_cell *cell; 659 struct seq_file *m; 660 int ret; 661 |
662 cell = PDE(inode)->data; | 662 cell = PDE_DATA(inode); |
663 if (!cell) 664 return -ENOENT; 665 666 ret = seq_open(file, &afs_proc_cell_servers_ops); 667 if (ret < 0) 668 return ret; 669 670 m = file->private_data; --- 74 unchanged lines hidden --- | 663 if (!cell) 664 return -ENOENT; 665 666 ret = seq_open(file, &afs_proc_cell_servers_ops); 667 if (ret < 0) 668 return ret; 669 670 m = file->private_data; --- 74 unchanged lines hidden --- |