From ed7e9e684b6de17db6af5bdc20bf91bf89e73d9d Mon Sep 17 00:00:00 2001 From: Javier Martinez Canillas Date: Tue, 7 Dec 2010 01:29:12 +0100 Subject: scullp: Change f_dentry to f_path.dentry and include header --- scullp/mmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scullp/mmap.c b/scullp/mmap.c index 619824e..c84f0e8 100644 --- a/scullp/mmap.c +++ b/scullp/mmap.c @@ -20,6 +20,7 @@ #include /* everything */ #include /* error codes */ #include +#include #include "scullp.h" /* local definitions */ @@ -102,7 +103,7 @@ struct vm_operations_struct scullp_vm_ops = { int scullp_mmap(struct file *filp, struct vm_area_struct *vma) { - struct inode *inode = filp->f_dentry->d_inode; + struct inode *inode = filp->f_path.dentry->d_inode; /* refuse to map if order is not 0 */ if (scullp_devices[iminor(inode)].order) -- cgit v1.2.1-18-gbd029