summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Martinez Canillas <martinez.javier@gmail.com>2010-12-06 01:00:33 +0100
committerJavier Martinez Canillas <martinez.javier@gmail.com>2010-12-06 01:00:33 +0100
commit671c39ffae1a32fe97875583d7e849dc42f7427c (patch)
tree1084a46c0ae823dd52f7c3e786dd9ac416a1b0f1
parentb61e20b8ae13f7b89ad247a9dbc952b0b1202cac (diff)
downloadldd3-671c39ffae1a32fe97875583d7e849dc42f7427c.tar.gz
sculld: mmap: Change f_dentry to f_path.dentry and include <linux/fs.h> header
-rw-r--r--sculld/mmap.c4
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)