From: Bob Glossman Date: Mon, 3 Nov 2014 22:43:27 +0000 (-0800) Subject: LU-5853 build: fix el7 build regression X-Git-Tag: 2.6.90~4 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=e88ce386e1c6c506568021595cb0ec93c03a629b 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 --- 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); }