10 Apr, 2013
40 commits
-
Signed-off-by: Al Viro
-
Signed-off-by: Al Viro
-
Signed-off-by: Al Viro
-
Signed-off-by: Al Viro
-
Signed-off-by: Al Viro
-
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
-
Signed-off-by: Al Viro
-
Signed-off-by: Al Viro
-
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
-
Signed-off-by: Al Viro
-
Signed-off-by: Al Viro
-
Helper functions are often useful. So are local variables...
Signed-off-by: Al Viro
-
Signed-off-by: Al Viro
-
Signed-off-by: Al Viro
-
Signed-off-by: Al Viro
-
Signed-off-by: Al Viro
-
... especially in a racy way
Signed-off-by: Al Viro
-
Signed-off-by: Al Viro
-
->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
-
this "hooks" scheme is pointless - just make file_operations non-static
and consolidate initialiazation bits.Signed-off-by: Al Viro
-
racy and very overblown...
Signed-off-by: Al Viro
-
Signed-off-by: Al Viro
-
All table entries either have non-NULL ->proc_file_fops or
non-NULL child.Signed-off-by: Al Viro
-
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
-
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
Signed-off-by: Al Viro -
Signed-off-by: Al Viro
-
proc_mkdir() is there for purpose...
Signed-off-by: Al Viro
-
Just have it pinned in dcache all along and let procfs ->kill_sb()
drop it before kill_anon_super().Signed-off-by: Al Viro
-
Signed-off-by: Al Viro
-
Signed-off-by: Al Viro
-
no need to search later - we know the card when we are
creating procfs entriesSigned-off-by: Al Viro
-
Signed-off-by: Al Viro
-
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
-
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
-
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
-
and rename __free_pipe_info() to free_pipe_info()
Signed-off-by: Al Viro
-
not used anymore
Signed-off-by: Al Viro
-
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
-
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
-
simplify get_pipe_info(), while we are at it
Signed-off-by: Al Viro