fsnotify: store struct file not struct path
[sfrench/cifs-2.6.git] / kernel / audit_watch.c
index 7499397a61003f7d77d10623535bac26eadcf3e0..b955a22d8ff19ed01703e1502a561309d85ce6a7 100644 (file)
@@ -545,8 +545,8 @@ static int audit_watch_handle_event(struct fsnotify_group *group, struct fsnotif
                return 0;
 
        switch (event->data_type) {
-       case (FSNOTIFY_EVENT_PATH):
-               inode = event->path.dentry->d_inode;
+       case (FSNOTIFY_EVENT_FILE):
+               inode = event->file->f_path.dentry->d_inode;
                break;
        case (FSNOTIFY_EVENT_INODE):
                inode = event->inode;