Whamcloud - gitweb
LU-3963 libcfs: remove proc handler wrappers
[fs/lustre-release.git] / libcfs / include / libcfs / linux / libcfs.h
index f96a780..7f3ba3e 100644 (file)
@@ -111,6 +111,11 @@ do {                                                                    \
  */
 #define CFS_CURPROC_COMM_MAX (sizeof ((struct task_struct *)0)->comm)
 
+/* helper for sysctl handlers */
+int lprocfs_call_handler(void *data, int write, loff_t *ppos, void *buffer,
+                        size_t *lenp, int (*handler)(void *data, int write,
+                        loff_t pos, void *buffer, int len));
+
 #include <linux/capability.h>
 
 /*
@@ -127,7 +132,6 @@ struct cfs_stack_trace {
  * Macros to access common characteristics of "current" UNIX process.
  */
 #define current_pid()             (current->pid)
-#define current_umask()           (current->fs->umask)
 #define current_comm()            (current->comm)
 
 /* check if task is running in compat mode.*/