]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - fs/compat.c
fsnotify: pass a file instead of an inode to open, read, and write
[mv-sheeva.git] / fs / compat.c
index 6490d2134ff3e73656b29b6ad5473e339870ae8d..ce02278b9c8345edb0df7dd4d6bb9d5f6dc99760 100644 (file)
@@ -1193,11 +1193,10 @@ out:
        if (iov != iovstack)
                kfree(iov);
        if ((ret + (type == READ)) > 0) {
-               struct dentry *dentry = file->f_path.dentry;
                if (type == READ)
-                       fsnotify_access(dentry);
+                       fsnotify_access(file);
                else
-                       fsnotify_modify(dentry);
+                       fsnotify_modify(file);
        }
        return ret;
 }