From 671c39ffae1a32fe97875583d7e849dc42f7427c Mon Sep 17 00:00:00 2001 From: Javier Martinez Canillas Date: Mon, 6 Dec 2010 01:00:33 +0100 Subject: sculld: mmap: Change f_dentry to f_path.dentry and include header --- sculld/mmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sculld/mmap.c b/sculld/mmap.c index 3424e89..4c7341d 100644 --- a/sculld/mmap.c +++ b/sculld/mmap.c @@ -16,7 +16,7 @@ */ #include - +#include #include /* everything */ #include /* error codes */ #include @@ -101,7 +101,7 @@ struct vm_operations_struct sculld_vm_ops = { int sculld_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 (sculld_devices[iminor(inode)].order) -- cgit v1.2.1-18-gbd029