]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/compat.c
Merge branch 'for-linus' of git://git.infradead.org/users/eparis/notify
[net-next-2.6.git] / fs / compat.c
index 3e57e8162a394a1085ed53d6d508ede0b4006bac..e6d5d70cf3cf6dbc78982d2a1ade3c18bc564366 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;
 }