diff options
Diffstat (limited to 'fs/inotify_user.c')
-rw-r--r-- | fs/inotify_user.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/inotify_user.c b/fs/inotify_user.c index 017cb0f134d6..55f6da55b7c0 100644 --- a/fs/inotify_user.c +++ b/fs/inotify_user.c | |||
@@ -34,8 +34,8 @@ | |||
34 | 34 | ||
35 | #include <asm/ioctls.h> | 35 | #include <asm/ioctls.h> |
36 | 36 | ||
37 | static kmem_cache_t *watch_cachep __read_mostly; | 37 | static struct kmem_cache *watch_cachep __read_mostly; |
38 | static kmem_cache_t *event_cachep __read_mostly; | 38 | static struct kmem_cache *event_cachep __read_mostly; |
39 | 39 | ||
40 | static struct vfsmount *inotify_mnt __read_mostly; | 40 | static struct vfsmount *inotify_mnt __read_mostly; |
41 | 41 | ||
@@ -570,9 +570,9 @@ asmlinkage long sys_inotify_init(void) | |||
570 | dev->ih = ih; | 570 | dev->ih = ih; |
571 | 571 | ||
572 | filp->f_op = &inotify_fops; | 572 | filp->f_op = &inotify_fops; |
573 | filp->f_vfsmnt = mntget(inotify_mnt); | 573 | filp->f_path.mnt = mntget(inotify_mnt); |
574 | filp->f_dentry = dget(inotify_mnt->mnt_root); | 574 | filp->f_path.dentry = dget(inotify_mnt->mnt_root); |
575 | filp->f_mapping = filp->f_dentry->d_inode->i_mapping; | 575 | filp->f_mapping = filp->f_path.dentry->d_inode->i_mapping; |
576 | filp->f_mode = FMODE_READ; | 576 | filp->f_mode = FMODE_READ; |
577 | filp->f_flags = O_RDONLY; | 577 | filp->f_flags = O_RDONLY; |
578 | filp->private_data = dev; | 578 | filp->private_data = dev; |