Whamcloud - gitweb
LU-5853 build: fix el7 build regression 46/12546/2
authorBob Glossman <bob.glossman@intel.com>
Mon, 3 Nov 2014 22:43:27 +0000 (14:43 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 4 Nov 2014 18:16:22 +0000 (18:16 +0000)
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 <bob.glossman@intel.com>
Change-Id: I5b43e485cf5ba25e8473ed5783848aca77b96048
Reviewed-on: http://review.whamcloud.com/12546
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Tested-by: Jenkins
Reviewed-by: Minh Diep <minh.diep@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ptlrpc/nodemap_lproc.c

index f18d1b4..1142ec6 100644 (file)
@@ -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);
 }