diff options
author | James Simmons <jsimmons@infradead.org> | 2016-03-07 18:10:24 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-07 16:17:45 -0800 |
commit | 708a24c18979af6a55fc3d9a397910af0d47872a (patch) | |
tree | 4ed2540645f14e79121258b99e2d348cd7cb4478 /drivers/staging/lustre/include | |
parent | 5900ba932efc30fce67abeb8f73ad2b3e522915e (diff) | |
download | op-kernel-dev-708a24c18979af6a55fc3d9a397910af0d47872a.zip op-kernel-dev-708a24c18979af6a55fc3d9a397910af0d47872a.tar.gz |
staging: lustre: make LNet use lprocfs_call_handler
Sometime ago a patch was submitted to duplicate the
proc_call_handler code in the LNet layer. This was
due to the thinking libcfs was not used by the LNet
layer. This was a wrong assumption so lets make LNet
use the lprocfs_call_handler from the libcfs layer.
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/include')
-rw-r--r-- | drivers/staging/lustre/include/linux/libcfs/libcfs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/staging/lustre/include/linux/libcfs/libcfs.h b/drivers/staging/lustre/include/linux/libcfs/libcfs.h index 1eab0eb..40af75c 100644 --- a/drivers/staging/lustre/include/linux/libcfs/libcfs.h +++ b/drivers/staging/lustre/include/linux/libcfs/libcfs.h @@ -154,5 +154,9 @@ struct lnet_debugfs_symlink_def { void lustre_insert_debugfs(struct ctl_table *table, const struct lnet_debugfs_symlink_def *symlinks); +int lprocfs_call_handler(void *data, int write, loff_t *ppos, + void __user *buffer, size_t *lenp, + int (*handler)(void *data, int write, + loff_t pos, void __user *buffer, int len)); #endif /* _LIBCFS_H */ |