summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2013-04-09procfs: new helper - PDE_DATA(inode)Al Viro95-302/+243
The only part of proc_dir_entry the code outside of fs/proc really cares about is PDE(inode)->data. Provide a helper for that; static inline for now, eventually will be moved to fs/proc, along with the knowledge of struct proc_dir_entry layout. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09last_radio_log: switch to proc_create()Al Viro1-16/+4
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09procfs: kill ->write_proc()Al Viro2-26/+0
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09bfin_adv7393: switch to proc_create_data()Al Viro1-24/+19
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09xtensa simdisk: switch to proc_create_data()Al Viro1-13/+23
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09rtl8192u: switch to proc_create()Al Viro1-31/+22
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09scsi_proc: make proc_scsi_host_open() preallocate a bigger bufferAl Viro1-1/+2
Some of the ->show_info() instances really spew a lot; it's not a problem wrt correctness (seq_read() will grow buffer and call the sucker again), but in this case it makes sense to start with a somewhat bigger one - they often do exceed one page worth of output. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09new helper: single_open_size()Al Viro2-0/+19
Same as single_open(), but preallocates the buffer of given size. Doesn't make any sense for sizes up to PAGE_SIZE and doesn't make sense if output of show() exceeds PAGE_SIZE only rarely - seq_read() will take care of growing the buffer and redoing show(). If you _know_ that it will be large, it might make more sense to look into saner iterator, rather than go with single-shot one. If that's impossible, single_open_size() might be for you. Again, don't use that without a good reason; occasionally that's really the best way to go, but very often there are better solutions. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09scsi: bury ->proc_info()Al Viro2-73/+9
all users converted to ->show_info()/->write_info() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09atari_scsi: switch to ->show_info()Al Viro3-87/+62
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09aix7xxx_old: switch to ->show_info()Al Viro2-163/+60
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09sata_svw: switch to ->show_info()Al Viro1-22/+7
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09ips: fix format bugs exposed by previous commitAl Viro1-3/+3
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09ips: switch to ->show_info()Al Viro2-161/+80
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09acornscsi: switch to ->show_info()Al Viro1-41/+17
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09fas216: switch to ->show_info()Al Viro6-142/+49
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09aic7xxx: switch to ->show_info()Al Viro3-126/+48
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09aic79xx: switch to ->show_info()Al Viro3-131/+53
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09in2000: switch to ->show_info()Al Viro1-106/+72
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09atp870u: switch to ->show_info()Al Viro1-32/+8
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09dc395x: switch to ->show_info()Al Viro1-16/+4
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09dpt_i2o: switch to ->show_info()Al Viro1-90/+12
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09eata_pio: switch to ->show_info()Al Viro1-46/+10
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09aha1740: switch to ->show_info()Al Viro1-24/+5
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09aha152x: switch to ->show_info()Al Viro1-49/+12
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09advansys: fix buggered formats - unsigned long != u32 on 64bitAl Viro1-13/+13
asc_prt_line() had been hiding several places where formats had not matched the argument types. The previous commit has finally made them visible... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09advansys: switch to ->show_info()Al Viro1-837/+327
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09nsp_cs: switch to ->show_info()Al Viro2-38/+7
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09nsp32: switch to ->show_info()Al Viro1-33/+6
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09keucr: switch to ->show_info()Al Viro1-32/+13
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09rts5139: switch to ->show_info()Al Viro2-23/+9
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09tcm: switch to ->show_info()Al Viro1-5/+4
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09cciss: switch to ->show_info()Al Viro1-51/+45
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09BusLogic: switch to ->show_info()Al Viro2-46/+38
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09scsi_debug: switch to ->show_info()Al Viro1-32/+21
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09fusion: switch to ->show_info()Al Viro5-95/+11
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09usb-storage: switch to ->show_info()Al Viro1-28/+14
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09NCR5830: switch to ->show_info()Al Viro13-78/+71
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09ppa: switch to ->show_info()Al Viro1-26/+10
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09imm: switch to ->show_info()Al Viro1-29/+11
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09gdth: switch to ->show_info()Al Viro4-170/+52
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09switch wd33c93 to ->show_info()Al Viro6-115/+94
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09wd7000: switch to ->show_info()Al Viro1-23/+8
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09sym53c8xx_2: switch to ->show_info()Al Viro1-94/+21
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09scsi: saner replacements for ->proc_info()Al Viro2-10/+63
It's still an obsolete interface; don't introduce those in new drivers. However, it's saner than the ->proc_info() and commits after this one will convert the existing ->proc_info() users to it. The read side is ->show_info(seq_file *, struct Scsi_Host *); use seq_... for generating contents. The write side is ->write_info(struct Scsi_Host *, char *, int). Again, this is driven by procfs needs; we are going to kill ->write_proc() and ->read_proc() and this is the main obstacle to burying that piece of shit. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09procfs: don't allow to use proc_create, create_proc_entry, etc. for directoriesAl Viro2-34/+27
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09i2o: use proc_remove_subtree()Al Viro1-50/+1
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09silicom: bury bp_proc.cAl Viro3-1330/+0
It's a seriously rotten copy of parts of bp_mod.c; had been ifdefed out all along, lacks a bunch of declarations that would be needed if ifdef had been removed, all stuff in it is duplicated in bp_mod.c anyway... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09silicom: switch to create_proc_data(), clean procfs side of things upAl Viro1-820/+379
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09reiserfs: use proc_remove_subtree()Al Viro1-21/+9
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>