diff options
author | Javier Martinez Canillas <martinez.javier@gmail.com> | 2010-12-06 01:00:33 +0100 |
---|---|---|
committer | Javier Martinez Canillas <martinez.javier@gmail.com> | 2010-12-06 01:00:33 +0100 |
commit | 671c39ffae1a32fe97875583d7e849dc42f7427c (patch) | |
tree | 1084a46c0ae823dd52f7c3e786dd9ac416a1b0f1 | |
parent | b61e20b8ae13f7b89ad247a9dbc952b0b1202cac (diff) | |
download | ldd3-671c39ffae1a32fe97875583d7e849dc42f7427c.tar.gz |
sculld: mmap: Change f_dentry to f_path.dentry and include <linux/fs.h> header
-rw-r--r-- | sculld/mmap.c | 4 |
1 files 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 <linux/module.h> - +#include <linux/fs.h> #include <linux/mm.h> /* everything */ #include <linux/errno.h> /* error codes */ #include <asm/pgtable.h> @@ -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) |