summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* i2o: use proc_remove_subtree()Al Viro2013-04-091-50/+1
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* silicom: bury bp_proc.cAl Viro2013-04-093-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>
* silicom: switch to create_proc_data(), clean procfs side of things upAl Viro2013-04-091-820/+379
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* reiserfs: use proc_remove_subtree()Al Viro2013-04-091-21/+9
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* silicom: untangle module_initAl Viro2013-04-091-192/+133
| | | | | | Helper functions are often useful. So are local variables... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* silicom: get_bypass_slave_pfs() open-codes lookup_port()Al Viro2013-04-091-25/+2
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* silicom: unobfuscate get_{status,master}_port_fn()Al Viro2013-04-091-48/+19
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* silicom: helper functions are often useful...Al Viro2013-04-091-280/+43
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* get rid of a bunch of open-coded create_proc_read_entry()Al Viro2013-04-096-22/+11
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* isp1362-hcd: don't reimplement proc_create_data()Al Viro2013-04-091-4/+1
| | | | | | ... especially in a racy way Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* rtl8192u: don't play with reassigning ->proc_fops, just use proc_create()Al Viro2013-04-091-5/+1
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* dgrp procfs fixes, part 6: just use proc_create{,_data}Al Viro2013-04-093-65/+4
| | | | | | | | ->permission() of its own is a rudiment of sysctl imitation; normal procfs logics will do just fine here, no need to mess with ->proc_iops at all. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* dgrp procfs fixes, part 5: per-node filesAl Viro2013-04-096-129/+45
| | | | | | | this "hooks" scheme is pointless - just make file_operations non-static and consolidate initialiazation bits. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* dgrp procfs fixes, part 4: get rid of sysctl-like machineryAl Viro2013-04-092-270/+42
| | | | | | racy and very overblown... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* dgrp procfs fixes, part 3: kill dead codeAl Viro2013-04-091-63/+0
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* dgrp procfs fixes, part 2Al Viro2013-04-091-4/+1
| | | | | | | All table entries either have non-NULL ->proc_file_fops or non-NULL child. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* dgrp procfs fixes, part 1Al Viro2013-04-091-2/+1
| | | | | | | | proc_create() has shat upon fops argument when mode is S_IFDIR. Good thing, too, since fops passed to it is completely useless for any directory. Just use proc_mkdir(), damnit. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* The rtl8192e procfs-based debug interface seems very brokenSean MacLennan2013-04-094-1041/+0
| | | | | | | | | The procfs debug code in rtl_debug.c is, ironically, very buggy: it lacks proper locking. Since the most useful part of the code (the stats) are available through more standard APIs, I think it is best to just delete the whole mess. Signed-off-by: Sean MacLennan <seanm@seanm.ca> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* rtl8192e: switch to proc_create()Al Viro2013-04-091-31/+21
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* rtl8192e: don't use create_proc_entry() for directoriesAl Viro2013-04-091-1/+1
| | | | | | proc_mkdir() is there for purpose... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* procfs: switch /proc/self away from proc_dir_entryAl Viro2013-04-096-12/+56
| | | | | | | Just have it pinned in dcache all along and let procfs ->kill_sb() drop it before kill_anon_super(). Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* mode_t, whack-a-mole at 11...Al Viro2013-04-097-9/+9
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* snd_info_register: switch to proc_create_data/proc_mkdir_modeAl Viro2013-04-091-8/+14
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* hysdn: stash pointer to card into proc_dir_entry->dataAl Viro2013-04-092-85/+18
| | | | | | | no need to search later - we know the card when we are creating procfs entries Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* atags_proc: switch to proc_create_data()Al Viro2013-04-091-18/+10
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* gadgetfs: don't bother with fops->ownerAl Viro2013-04-092-4/+0
| | | | | | | filesystem module as whole is pinned down by its superblock, no need to have opened files on it to add anything to that. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* ccg: don't bother with fops->ownerAl Viro2013-04-091-2/+0
| | | | | | | filesystem module as whole is pinned down by its superblock, no need to have opened files on it to add anything to that. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* spufs: don't bother with fops->ownerAl Viro2013-04-091-2/+0
| | | | | | | filesystem module as whole is pinned down by its superblock, no need to have opened files on it to add anything to that. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* get rid of the last free_pipe_info() callersAl Viro2013-04-093-15/+8
| | | | | | and rename __free_pipe_info() to free_pipe_info() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* get rid of alloc_pipe_info() argumentAl Viro2013-04-093-5/+5
| | | | | | not used anymore Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* get rid of pipe->inodeAl Viro2013-04-094-8/+5
| | | | | | | | it's used only as a flag to distinguish normal pipes/FIFOs from the internal per-task one used by file-to-file splice. And pipe->files would work just as well for that purpose... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* introduce variants of pipe_lock/pipe_unlock for real pipes/FIFOsAl Viro2013-04-091-15/+25
| | | | | | | fs/pipe.c file_operations methods *know* that pipe is not an internal one; no need to check pipe->inode for those callers. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* pipe: set file->private_data to ->i_pipeAl Viro2013-04-092-11/+10
| | | | | | simplify get_pipe_info(), while we are at it Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* pipe: don't use ->i_mutexAl Viro2013-04-093-6/+7
| | | | | | | now it can be done - put mutex into pipe_inode_info, use it instead of ->i_mutex Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* pipe: take allocation and freeing of pipe_inode_info out of ->i_mutexAl Viro2013-04-092-21/+53
| | | | | | | | | | | | | | | | | | * new field - pipe->files; number of struct file over that pipe (all sharing the same inode, of course); protected by inode->i_lock. * pipe_release() decrements pipe->files, clears inode->i_pipe when if the counter has reached 0 (all under ->i_lock) and, in that case, frees pipe after having done pipe_unlock() * fifo_open() starts with grabbing ->i_lock, and either bumps pipe->files if ->i_pipe was non-NULL or allocates a new pipe (dropping and regaining ->i_lock) and rechecks ->i_pipe; if it's still NULL, inserts new pipe there, otherwise bumps ->i_pipe->files and frees the one we'd allocated. At that point we know that ->i_pipe is non-NULL and won't go away, so we can do pipe_lock() on it and proceed as we used to. If we end up failing, decrement pipe->files and if it reaches 0 clear ->i_pipe and free the sucker after pipe_unlock(). Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* pipe: preparation to new locking rulesAl Viro2013-04-091-23/+15
| | | | | | | | * use the fact that file_inode(file)->i_pipe doesn't change while the file is opened - no locks needed to access that. * switch to pipe_lock/pipe_unlock where it's easy to do Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* pipe: switch wait_for_partner() and wake_up_partner() to pipe_inode_infoAl Viro2013-04-091-9/+9
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* pipe: fold file_operations instances in oneAl Viro2013-04-094-195/+38
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* fold fifo.c into pipe.cAl Viro2013-04-093-154/+139
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* lift sb_start_write out of ->splice_write()Al Viro2013-04-091-6/+4
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* lift sb_start_write into default_file_splice_write()Al Viro2013-04-091-2/+2
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* lift sb_start_write() out of ->write()Al Viro2013-04-098-13/+26
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* switch compat readv/writev variants to COMPAT_SYSCALL_DEFINEAl Viro2013-04-095-210/+197
| | | | | | ... and take to fs/read_write.c Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* f2fs: use mnt_want_write_file() in ioctlAl Viro2013-04-091-2/+2
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* lift sb_start_write/sb_end_write out of ->aio_write()Al Viro2013-04-0911-22/+28
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* hpfs: move setting hpfs-private i_dirty to ->write_end()Al Viro2013-04-091-16/+20
| | | | | | ... so that writev(2) doesn't miss it. Get rid of hpfs_file_write(). Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* reiserfs: don't wank with EFBIG before calling do_sync_write()Al Viro2013-04-091-60/+1
| | | | | | look for file_capable() in there... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* fold release_mounts() into namespace_unlock()Al Viro2013-04-091-23/+30
| | | | | | | | | ... and provide namespace_lock() as a trivial wrapper; switch to those two consistently. Result is patterned after rtnl_lock/rtnl_unlock pair. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* switch unlock_mount() to namespace_unlock(), convert all umount_tree() callersAl Viro2013-04-093-24/+16
| | | | | | | which allows to kill the last argument of umount_tree() and make release_mounts() static. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* more conversions to namespace_unlock()Al Viro2013-04-091-14/+6
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>