Whamcloud - gitweb
LU-16118 build: Use pde_data() when available
[fs/lustre-release.git] / lustre / include / lprocfs_status.h
index 7231905..9d2d092 100644 (file)
@@ -794,7 +794,7 @@ static int name##_single_open(struct inode *inode, struct file *file)       \
 {                                                                      \
        return single_open(file, name##_seq_show,                       \
                           inode->i_private ? inode->i_private :        \
-                                             PDE_DATA(inode));         \
+                                             pde_data(inode));         \
 }                                                                      \
 static const struct proc_ops name##_fops = {                           \
        PROC_OWNER(THIS_MODULE)                                         \
@@ -841,7 +841,7 @@ static const struct proc_ops name##_fops = {                                \
        {                                                               \
                return single_open(file, NULL,                          \
                                   inode->i_private ? inode->i_private : \
-                                  PDE_DATA(inode));                    \
+                                  pde_data(inode));                    \
        }                                                               \
        static const struct proc_ops name##_##type##_fops = {           \
                .proc_open      = name##_##type##_open,                 \