From e88ce386e1c6c506568021595cb0ec93c03a629b Mon Sep 17 00:00:00 2001 From: Bob Glossman Date: Mon, 3 Nov 2014 14:43:27 -0800 Subject: [PATCH] LU-5853 build: fix el7 build regression Correct the build failure caused by recent master landing for LU-4647 nodemap: add mapping functionality by using PDE_DATA() instead of PDE() in new code. Signed-off-by: Bob Glossman Change-Id: I5b43e485cf5ba25e8473ed5783848aca77b96048 Reviewed-on: http://review.whamcloud.com/12546 Reviewed-by: James Simmons Tested-by: Jenkins Reviewed-by: Minh Diep Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/ptlrpc/nodemap_lproc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lustre/ptlrpc/nodemap_lproc.c b/lustre/ptlrpc/nodemap_lproc.c index f18d1b4..1142ec6 100644 --- a/lustre/ptlrpc/nodemap_lproc.c +++ b/lustre/ptlrpc/nodemap_lproc.c @@ -201,8 +201,7 @@ static int nodemap_exports_show(struct seq_file *m, void *data) */ static int nodemap_exports_open(struct inode *inode, struct file *file) { - struct proc_dir_entry *dir = PDE(inode); - struct lu_nodemap *nodemap = dir->data; + struct lu_nodemap *nodemap = PDE_DATA(inode); return single_open(file, nodemap_exports_show, nodemap); } -- 1.8.3.1