Marcus Folkesson
f9aaa43eee
staging: lustre: fix non-static symbol warnings reported by sparse
...
Warnings reported by sparse:
drivers/staging/lustre/lustre/ptlrpc/pinger.c:94:5:
warning: symbol 'ptlrpc_ping' was not declared. Should it be static?
drivers/staging/lustre/lustre/ptlrpc/pinger.c:113:6:
warning: symbol 'ptlrpc_update_next_ping' was not declared. Should it be static
drivers/staging/lustre/lustre/ptlrpc/pinger.c:144:6:
warning: symbol 'pinger_check_timeout' was not declared. Should it be static?
drivers/staging/lustre/lustre/ptlrpc/pinger.c:425:21:
warning: symbol 'ptlrpc_new_timeout' was not declared. Should it be static?
drivers/staging/lustre/lustre/ptlrpc/pinger.c:551:1:
warning: symbol 'pet_list' was not declared. Should it be static?
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 11:28:48 +09:00
Dmitry Eremin
61e87ab0f8
staging/lustre/obd: move status files from procfs to debugfs
...
change type of
* obd->obd_proc_entry
* obd->obd_svc_procroot
* lov->lov_pool_proc_entry
* obd_type->typ_procroot
* pool_desc->pool_proc_entry
Signed-off-by: Dmitry Eremin <dmiter4ever@gmail.com >
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 11:19:57 +09:00
Dmitry Eremin
827650494f
staging/lustre/fld: move all files from procfs to debugfs
...
Signed-off-by: Dmitry Eremin <dmiter4ever@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 11:19:57 +09:00
Dmitry Eremin
f3aa79fbef
staging/lustre/fid: move all files from procfs to debugfs
...
Signed-off-by: Dmitry Eremin <dmiter4ever@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 11:19:57 +09:00
Dmitry Eremin
4ed8ddb09b
staging/lustre/obdclass: remove unused sysctl enum definition
...
Since we are removing lustre sysctls, this enum is no longer needed.
Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 11:19:57 +09:00
Oleg Drokin
b5fa70d76f
staging/lustre/lmv: Move suitable entries from procfs to sysfs
...
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 11:18:24 +09:00
Oleg Drokin
cb1debff6d
staging/lustre/lov: Move suitable variables from procfs to sysfs
...
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 11:18:24 +09:00
Oleg Drokin
aab38b00ac
staging/lustre/osc: move suitable values from procfs to sysfs
...
All single-value controls are moved from /proc/fs/lustre/osc/.../
to /sys/fs/lustre/osc/.../
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 11:18:24 +09:00
Oleg Drokin
2ee26222d4
staging/lustre/mdc: move mdc-specific procfs files to sysfs
...
This moves max_rpcs_in_flight and max_pages_per_rpc to
/proc/fs/lustre/mdc/.../
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 11:18:24 +09:00
Oleg Drokin
d8ede3f1d5
staging/lustre/llite: make llite/lov and lmv symlinks
...
old proc code had /proc/sys/fs/lustre/llite/.../lov and lmv
dirs that contained name of the dir in lustre/lov and lustre/lmv
to better be able to find correct obd device there, but
I imagien a better solution would be to just create a symlink with
the same name. The name is then pointless and the target dir would
have uuid file just as if it was the old-style dir.
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 11:18:24 +09:00
Oleg Drokin
0bc36cb06e
staging/lustre/obdclass: Move common obd proc files to sysfs
...
This moves uuid display and also underlying fs statistics.
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 11:18:23 +09:00
Oleg Drokin
9b8013023c
staging/lustre/obdclass: Prepare for procfs to sysfs migration
...
Add necessary plumbing to register obd types and instances
under /sys/fs/lustre
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 11:18:23 +09:00
Oleg Drokin
b8c7ceda74
staging/lustre/obdecho: Remove procfs registration
...
obdecho client seems to be only registering useless proc values that
are of no use to anybody.
Remove them.
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 11:18:23 +09:00
Oleg Drokin
cc551d5da6
stagng/lustre/obdclass: Remove unused function lprocfs_rd_num_exports
...
This function is unused in client code.
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 11:16:54 +09:00
Oleg Drokin
2962b440df
staging/lustre: Remove useless num_refs procfs variable
...
Every obd type registers it, but it's not really needed by anybody.
Remove all the supporting infrastructure too.
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 11:16:54 +09:00
Dmitry Eremin
77386b3c0b
staging/lustre/ptlrpc: move sptlrpc procfs entry to debugfs
...
We might want eventuall split it into a bunch of
single-value sysfs entries, I imagine, but there is no urgent need now.
Signed-off-by: Dmitry Eremin <dmiter4ever@gmail.com >
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 11:16:54 +09:00
Dmitry Eremin
700815d47f
staging/lustre/ldlm: move all remaining files from procfs to debugfs
...
Move all files except stats. It will be moved later after change
type of obddev->obd_proc_entry member.
Signed-off-by: Dmitry Eremin <dmiter4ever@gmail.com >
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 11:14:51 +09:00
Oleg Drokin
b40881e579
staging/lustre/ptlrpc: move procfs high_priority_ratio file to sysfs
...
Move ptlrpc service high_priority_ratio entry from procfs to sysfs.
Currently in use only by ldlm callback service only in
/sys/fs/lustre/ldlm/services/ldlm_cbd/
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 11:13:20 +09:00
Oleg Drokin
673a6796f2
staging/lustre/ptlrpc: move procfs threads* files to sysfs
...
Move ptlrpc service threads_min, threads_max and threads_running
entries from procfs to sysfs.
Currently in use only by ldlm callback service only in
/sys/fs/lustre/ldlm/services/ldlm_cbd/
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 11:13:20 +09:00
Oleg Drokin
328676f823
staging/lustre/ptlrpc: Add infrastructure for sysfs migration
...
Added necessary plumbing for ptlrpc sysfs integration for registered
services, sysfs directory registration.
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 11:13:20 +09:00
Oleg Drokin
4361a04874
staging/lustre: move /proc/fs/lustre/devices to debugfs
...
the devices file prints out status information about all
obd devices in the system in human readable form.
Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com >
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 11:10:36 +09:00
Oleg Drokin
5c8c82f63a
staging/lustre: Add debugfs root
...
This is just plumbing for migrating remaining procfs to
debugfs support
Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com >
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 10:59:23 +09:00
Oleg Drokin
24b8c88a71
staging/lustre/ldlm: move procfs ldlm pool stats to sysfs
...
Suitable contents of /proc/fs/lustre/ldlm/namespaces/.../pools/
is moved to /sys/fs/lustre/ldlm/namespaces/.../pools/:
cancel_rate grant_plan grant_speed lock_volume_factor
server_lock_volume granted grant_rate limit recalc_period
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 10:50:20 +09:00
Oleg Drokin
f2825e039e
staging/lustre/ldlm: Add infrastructure to move ldlm pool controls to sysfs
...
This adds registration of /sys/fs/lustre/ldlm/namespaces/.../pool
dir.
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 10:50:20 +09:00
Oleg Drokin
fa0352f0c1
staging/lustre/ldlm: remove server-side congested locks support
...
This code only makes sense on the server, also while we are at it
drop registration of server-side procfs values and
as all client side values were already moved to sysfs - also
drop now unused procfs helpers.
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 10:50:19 +09:00
Oleg Drokin
c841236dda
staging/lustre/ldlm: move namespaces/lru_max_age to sysfs
...
Move ldlm display of lru_max_age from procfs to sysfs
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 10:50:19 +09:00
Oleg Drokin
3dd4598271
staging/lustre/ldlm: move namespaces/lock_unused_count to sysfs
...
Move ldlm display of lock_unused_count from procfs to sysfs
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 10:50:19 +09:00
Oleg Drokin
87d32094ef
staging/lustre/ldlm: move namespaces/early_lock_cancel to sysfs
...
Move ldlm display of early_lock_cancel from procfs to sysfs
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 10:50:19 +09:00
Oleg Drokin
6784096b48
staging/lustre/ldlm: move namespaces/lru_size to sysfs
...
Move ldlm display of lru_size from procfs to sysfs
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 10:50:19 +09:00
Oleg Drokin
63af1f5747
staging/lustre/ldlm: move namespace/lock_count to sysfs
...
Move ldlm display of lock_count from procfs to sysfs
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 10:50:19 +09:00
Oleg Drokin
61d4a2e4b0
staging/lustre/ldlm: move namespaces/resource_count to sysfs
...
Move ldlm display of resource_count from procfs to sysfs
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 10:50:19 +09:00
Oleg Drokin
0f53c823f9
staging/lustre/ldlm: move cancel_unused_locks_before_replay to sysfs
...
/proc/fs/lustre/ldlm/cancel_unused_locks_before_replay is
moved to /sys/fs/lustre/ldlm/cancel_unused_locks_before_replay
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 10:50:19 +09:00
Oleg Drokin
18fd8850a4
staging/lustre/ldlm: Preparation to move /proc/fs/lustre/ldlm to sysfs
...
Add necessary infrastructure, register /sys/fs/lustre/ldlm,
/sys/fs/lustre/ldlm/namespaces and /sys/fs/lustre/ldlm/services
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 10:50:18 +09:00
Oleg Drokin
070c29ca79
staging/lustre/llite: move /proc/fs/lustre/llite/xattr_cache to sysfs
...
Move xattr_cache file from /proc/fs/lustre/llite/*
to /sys/fs/lustre/llite/*/
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 10:50:18 +09:00
Oleg Drokin
d36f2b0ba8
staging/lustre/llite: remove llite/*_cookiesize proc files
...
Since Lustre 2.5, cookiesize is unused on the clients since
MDS now does final object unlink by itself, so drop these
max_cookiesize and default_cookiesize files.
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 10:50:18 +09:00
Oleg Drokin
f5501d042e
staging/lustre/llite: move /proc/fs/lustre/llite/*_easize to sysfs
...
Move max_easize and default_easize files from /proc/fs/lustre/llite/*
to /sys/fs/lustre/llite/*/
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 10:50:18 +09:00
Oleg Drokin
c7fe64bdd0
staging/lustre/llite: move /proc/fs/lustre/llite/lazystatfs to sysfs
...
Move lazystatfs file from /proc/fs/lustre/llite/*
to /sys/fs/lustre/llite/*/
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 10:50:18 +09:00
Oleg Drokin
4081a3201a
staging/lustre/llite: move /proc/fs/lustre/llite/statahead_{max, agl} to sysfs
...
Move statahead_max and statahead_agl files from /proc/fs/lustre/llite/*
to /sys/fs/lustre/llite/*/
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 10:50:18 +09:00
Oleg Drokin
62cf4b1315
staging/lustre/llite: move /proc/fs/lustre/llite/stats_track* to sysfs
...
Move stats_track_pid, stats_track_ppid and stats_track_gid files
from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 10:50:18 +09:00
Oleg Drokin
06ed0cd897
staging/lustre/llite: remove unused ll_max_rw_chunk
...
ll_max_rw_chunk seems to be unused ever since we implemented CLIO in 2.0,
so remove it and all supporting infrastructure.
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 10:50:18 +09:00
Oleg Drokin
40cc864a9f
staging/lustre/llite: move /proc/fs/lustre/llite/checksum_pages to sysfs
...
Move checksum_pages file from /proc/fs/lustre/llite/*
to /sys/fs/lustre/llite/*/
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 10:48:03 +09:00
Oleg Drokin
ec46923586
staging/lustre/llite: move llite/max_read_ahead_whole_mb to sysfs
...
Move max_read_ahead_whole_mb file from /proc/fs/lustre/llite/*
to /sys/fs/lustre/llite/*/
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 10:48:03 +09:00
Oleg Drokin
0e6c5a219a
staging/lustre/llite: move llite/max_read_ahead_per_file_mb to sysfs
...
Move max_read_ahead_per_file_mb file from /proc/fs/lustre/llite/*
to /sys/fs/lustre/llite/*/
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 10:48:03 +09:00
Oleg Drokin
e1a1df5e88
staging/lustre/llite: move /proc/fs/lustre/llite/max_read_ahead_mb to sysfs
...
Move max_read_ahead_mb file from /proc/fs/lustre/llite/*
to /sys/fs/lustre/llite/*/
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 10:48:03 +09:00
Oleg Drokin
ec55a62999
staging/lustre/llite: move /proc/fs/lustre/llite/uuid to sysfs
...
Move uuid file from /proc/fs/lustre/llite/*
to /sys/fs/lustre/llite/*/
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 10:48:03 +09:00
Oleg Drokin
0cee667682
staging/lustre/llite: move /proc/fs/lustre/llite/fstype to sysfs
...
Move fstype file from /proc/fs/lustre/llite/*
to /sys/fs/lustre/llite/*/
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 10:48:03 +09:00
Oleg Drokin
95e1b6b0cf
staging/lustre/llite: move /proc/fs/lustre/llite/client_type to sysfs
...
Move client_type file from /proc/fs/lustre/llite/*
to /sys/fs/lustre/llite/*/
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 10:48:03 +09:00
Oleg Drokin
7267ec0d87
staging/lustre/llite: move /proc/fs/lustre/llite/files* to sysfs
...
Move filestotal and filesfree files from /proc/fs/lustre/llite/*
to /sys/fs/lustre/llite/*/
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 10:48:02 +09:00
Oleg Drokin
5804b11e14
staging/lustre/llite: move /proc/fs/lustre/llite/kbytes* to sysfs
...
Move kbytestotal, kbytesavail and kbytesfree files from
/proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 10:48:02 +09:00
Oleg Drokin
364bcfc863
staging/lustre/llite: move /proc/fs/lustre/llite/blocksize to sysfs
...
Move blocksize file from /proc/fs/lustre/llite/*/ to
/sys/fs/lustre/llite/*/blocksize
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-05-31 10:48:02 +09:00