Whamcloud - gitweb
LU-12634 build: kbuild changes in 5.3 drop subdir-m
[fs/lustre-release.git] / libcfs / include / libcfs / curproc.h
index e9e0cc2..0f00c72 100644 (file)
 #ifndef __LIBCFS_CURPROC_H__
 #define __LIBCFS_CURPROC_H__
 
+/* check if task is running in compat mode.*/
+#define current_pid()          (current->pid)
+#define current_comm()         (current->comm)
+
 typedef __u32 cfs_cap_t;
 
 #define CFS_CAP_CHOWN                   0