X-Git-Url: http://git.samba.org/samba.git/?a=blobdiff_plain;f=fs%2Finotify_user.c;h=55f6da55b7c0ec36f8e76307c512999570103e4e;hb=4fb23e439ce09157d64b89a21061b9fc08f2b495;hp=017cb0f134d6aa600f5c37296b6c786bacb6cf7c;hpb=49b1e3ea19b1c95c2f012b8331ffb3b169e4c042;p=sfrench%2Fcifs-2.6.git 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 @@ #include -static kmem_cache_t *watch_cachep __read_mostly; -static kmem_cache_t *event_cachep __read_mostly; +static struct kmem_cache *watch_cachep __read_mostly; +static struct kmem_cache *event_cachep __read_mostly; static struct vfsmount *inotify_mnt __read_mostly; @@ -570,9 +570,9 @@ asmlinkage long sys_inotify_init(void) dev->ih = ih; filp->f_op = &inotify_fops; - filp->f_vfsmnt = mntget(inotify_mnt); - filp->f_dentry = dget(inotify_mnt->mnt_root); - filp->f_mapping = filp->f_dentry->d_inode->i_mapping; + filp->f_path.mnt = mntget(inotify_mnt); + filp->f_path.dentry = dget(inotify_mnt->mnt_root); + filp->f_mapping = filp->f_path.dentry->d_inode->i_mapping; filp->f_mode = FMODE_READ; filp->f_flags = O_RDONLY; filp->private_data = dev;