fs: store real path instead of fake path in backing file f_path
[linux-2.6-microblaze.git] / include / linux / fsnotify.h
index ed48e4f..bcb6609 100644 (file)
@@ -96,8 +96,7 @@ static inline int fsnotify_file(struct file *file, __u32 mask)
        if (file->f_mode & FMODE_NONOTIFY)
                return 0;
 
-       /* Overlayfs internal files have fake f_path */
-       path = file_real_path(file);
+       path = &file->f_path;
        return fsnotify_parent(path->dentry, mask, path, FSNOTIFY_EVENT_PATH);
 }