diff options
author | Javier Martinez Canillas <martinez.javier@gmail.com> | 2010-12-07 01:29:12 +0100 |
---|---|---|
committer | Javier Martinez Canillas <martinez.javier@gmail.com> | 2010-12-07 01:29:12 +0100 |
commit | ed7e9e684b6de17db6af5bdc20bf91bf89e73d9d (patch) | |
tree | 6eab6f6d34d9ca63e4dfda9de75f36edce5966c2 | |
parent | ee85ddc684f9a41926a07f2afd139d75b523d933 (diff) | |
download | ldd3-ed7e9e684b6de17db6af5bdc20bf91bf89e73d9d.tar.gz |
scullp: Change f_dentry to f_path.dentry and include <linux/fs.h> header
-rw-r--r-- | scullp/mmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <linux/mm.h> /* everything */ #include <linux/errno.h> /* error codes */ #include <asm/pgtable.h> +#include <linux/fs.h> #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) |