X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=fs%2Fread_write.c;h=74e36586e4d3076db68cae1579d0c3b50c78a3b2;hb=ae42d8d44195a614c78a636683fe65ed31744cbd;hp=9c0485236e68d4abd02951d99aec5eb4a2905720;hpb=c876ae3eb27f15620b3489d0377c2f9486cc71a0;p=~andy%2Flinux diff --git a/fs/read_write.c b/fs/read_write.c index 9c0485236e6..74e36586e4d 100644 --- a/fs/read_write.c +++ b/fs/read_write.c @@ -311,7 +311,7 @@ ssize_t vfs_read(struct file *file, char __user *buf, size_t count, loff_t *pos) else ret = do_sync_read(file, buf, count, pos); if (ret > 0) { - fsnotify_access(file->f_path.dentry); + fsnotify_access(file); add_rchar(current, ret); } inc_syscr(current); @@ -367,7 +367,7 @@ ssize_t vfs_write(struct file *file, const char __user *buf, size_t count, loff_ else ret = do_sync_write(file, buf, count, pos); if (ret > 0) { - fsnotify_modify(file->f_path.dentry); + fsnotify_modify(file); add_wchar(current, ret); } inc_syscw(current); @@ -675,9 +675,9 @@ out: kfree(iov); if ((ret + (type == READ)) > 0) { if (type == READ) - fsnotify_access(file->f_path.dentry); + fsnotify_access(file); else - fsnotify_modify(file->f_path.dentry); + fsnotify_modify(file); } return ret; }