summaryrefslogtreecommitdiffstats
path: root/fs/orangefs/orangefs-sysfs.c
Commit message (Collapse)AuthorAgeFilesLines
* orangefs: Support readahead_readcnt parameter.Martin Brandenburg2017-02-031-2/+30
| | | | | Signed-off-by: Martin Brandenburg <martin@omnibond.com> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
* orangefs: Axe some dead codeChristophe JAILLET2016-12-121-9/+0Star
| | | | | | | | | | | The "perf_counter_reset" case has already been handled above. Moreover "ORANGEFS_PARAM_REQUEST_OP_READAHEAD_COUNT_SIZE" is not a really consistent. It is likely that this (dead) code is a cut and paste left over. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Martin Brandenburg <martin@omnibond.com> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
* Merge branch 'misc' into for-nextMartin Brandenburg2016-09-281-954/+239Star
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Pull in an OrangeFS branch containing miscellaneous improvements. - clean up debugfs globals - remove dead code in sysfs - reorganize duplicated sysfs attribute structs - consolidate sysfs show and store functions - remove duplicated sysfs_ops structures - describe organization of sysfs - make devreq_mutex static - g_orangefs_stats -> orangefs_stats for consistency - rename most remaining global variables
| * orangefs: rename most remaining global variablesMartin Brandenburg2016-08-161-4/+4
| | | | | | | | | | | | | | | | Only op_timeout_secs, slot_timeout_secs, and hash_table_size are left because they are exposed as module parameters. All other global variables have the orangefs_ prefix. Signed-off-by: Martin Brandenburg <martin@omnibond.com>
| * orangefs: g_orangefs_stats -> orangefs_stats for consistencyMartin Brandenburg2016-08-151-2/+2
| | | | | | | | Signed-off-by: Martin Brandenburg <martin@omnibond.com>
| * orangefs: describe organization of sysfsMartin Brandenburg2016-08-151-0/+7
| | | | | | | | Signed-off-by: Martin Brandenburg <martin@omnibond.com>
| * orangefs: remove duplicated sysfs_ops structuresMartin Brandenburg2016-08-151-58/+15Star
| | | | | | | | Signed-off-by: Martin Brandenburg <martin@omnibond.com>
| * orangefs: consolidate sysfs show and store functionsMartin Brandenburg2016-08-151-317/+148Star
| | | | | | | | | | | | Remove a good bit of obfuscated and duplicated code. Signed-off-by: Martin Brandenburg <martin@omnibond.com>
| * orangefs: reorganize duplicated sysfs attribute structsMartin Brandenburg2016-08-151-391/+81Star
| | | | | | | | | | | | | | | | We had a separate struct type for each type of attribute, but they all did the exact same thing. Consolidate them into one struct orangefs_attribute type. Signed-off-by: Martin Brandenburg <martin@omnibond.com>
| * orangefs: remove dead code in sysfsMartin Brandenburg2016-08-151-280/+81Star
| | | | | | | | | | | | | | | | We had a pageful of structures containing kobjects and variables to store sysfs entries. However only the kobjects were in use. Replace them with kobjects. Signed-off-by: Martin Brandenburg <martin@omnibond.com>
* | orangefs: do not allow client readahead cache without feature bitMartin Brandenburg2016-08-121-0/+19
|/ | | | Signed-off-by: Martin Brandenburg <martin@omnibond.com>
* orangefs: add readahead count and size to sysfsMartin Brandenburg2016-08-081-8/+115
| | | | Signed-off-by: Martin Brandenburg <martin@omnibond.com>
* orangefs: turn param response value into unionMartin Brandenburg2016-08-081-5/+3Star
| | | | | | | | | | | This will support a upcoming request where two related values need to be updated atomically. This was done without a union in the OrangeFS server source already. Since that will break the kernel protocol, it has been fixed there and done here in a way that does not break the kernel protocol. Signed-off-by: Martin Brandenburg <martin@omnibond.com>
* orangefs: Allow dcache and getattr cache time to be configured.Martin Brandenburg2016-08-021-1/+42
| | | | Signed-off-by: Martin Brandenburg <martin@omnibond.com>
* Orangefs: fix sloppy cleanups of debugfs and sysfs init failures.Mike Marshall2016-03-141-45/+44Star
| | | | Signed-off-by: Mike Marshall <hubcap@omnibond.com>
* orangefs: hopefully saner op refcounting and lockingAl Viro2016-01-231-21/+7Star
| | | | | | | | | | | | | | | | | | * create with refcount 1 * make op_release() decrement and free if zero (i.e. old put_op() has become that). * mark when submitter has given up waiting; from that point nobody else can move between the lists, change state, etc. * have daemon read/write_iter grab a reference when picking op and *always* give it up in the end * don't put into hash until we know it's been successfully passed to daemon * move op->lock _lower_ than htab_in_progress_lock (and make sure to take it in purge_inprogress_ops()) Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
* Orangefs: change pvfs2 filenames to orangefsMike Marshall2015-12-041-0/+1787
Also changed references within source files that referred to header files whose names had changed. Signed-off-by: Mike Marshall <hubcap@omnibond.com>