procfs: new helper - PDE_DATA(inode)
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / fs / afs / proc.c
index 096b23f821a1081a2370df2de59276c9d08b807f..526e4bbbde59e4936f91367101adac8c7373053e 100644 (file)
@@ -190,7 +190,7 @@ static int afs_proc_cells_open(struct inode *inode, struct file *file)
                return ret;
 
        m = file->private_data;
-       m->private = PDE(inode)->data;
+       m->private = PDE_DATA(inode);
 
        return 0;
 }
@@ -448,7 +448,7 @@ static int afs_proc_cell_volumes_open(struct inode *inode, struct file *file)
        struct seq_file *m;
        int ret;
 
-       cell = PDE(inode)->data;
+       cell = PDE_DATA(inode);
        if (!cell)
                return -ENOENT;
 
@@ -554,7 +554,7 @@ static int afs_proc_cell_vlservers_open(struct inode *inode, struct file *file)
        struct seq_file *m;
        int ret;
 
-       cell = PDE(inode)->data;
+       cell = PDE_DATA(inode);
        if (!cell)
                return -ENOENT;
 
@@ -659,7 +659,7 @@ static int afs_proc_cell_servers_open(struct inode *inode, struct file *file)
        struct seq_file *m;
        int ret;
 
-       cell = PDE(inode)->data;
+       cell = PDE_DATA(inode);
        if (!cell)
                return -ENOENT;