Linux 5.17 compat: PDE_DATA() renamed to pde_data()

Upstream commit 359745d78351c6f5442435f81549f0207ece28aa
("proc: remove PDE_DATA() completely")

Link: https://lore.kernel.org/all/20211124081956.87711-2-songmuchun@bytedance.com/T/#u

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13004
Closes #12989
This commit is contained in:
наб
2022-01-24 20:11:07 +01:00
committed by Brian Behlendorf
parent a46237106c
commit 5dccd7e8f3
3 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -418,7 +418,7 @@ proc_kstat_open(struct inode *inode, struct file *filp)
return (rc);
f = filp->private_data;
f->private = PDE_DATA(inode);
f->private = SPL_PDE_DATA(inode);
return (0);
}
+1 -1
View File
@@ -175,7 +175,7 @@ procfs_list_open(struct inode *inode, struct file *filp)
struct seq_file *f = filp->private_data;
procfs_list_cursor_t *cursor = f->private;
cursor->procfs_list = PDE_DATA(inode);
cursor->procfs_list = SPL_PDE_DATA(inode);
cursor->cached_node = NULL;
cursor->cached_pos = 0;