diff options
Diffstat (limited to 'fs/compat.c')
-rw-r--r-- | fs/compat.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/fs/compat.c b/fs/compat.c index 728cd8365384..6b06b6bae35e 100644 --- a/fs/compat.c +++ b/fs/compat.c | |||
@@ -37,7 +37,7 @@ | |||
37 | #include <linux/ctype.h> | 37 | #include <linux/ctype.h> |
38 | #include <linux/module.h> | 38 | #include <linux/module.h> |
39 | #include <linux/dirent.h> | 39 | #include <linux/dirent.h> |
40 | #include <linux/dnotify.h> | 40 | #include <linux/fsnotify.h> |
41 | #include <linux/highuid.h> | 41 | #include <linux/highuid.h> |
42 | #include <linux/sunrpc/svc.h> | 42 | #include <linux/sunrpc/svc.h> |
43 | #include <linux/nfsd/nfsd.h> | 43 | #include <linux/nfsd/nfsd.h> |
@@ -1307,9 +1307,13 @@ static ssize_t compat_do_readv_writev(int type, struct file *file, | |||
1307 | out: | 1307 | out: |
1308 | if (iov != iovstack) | 1308 | if (iov != iovstack) |
1309 | kfree(iov); | 1309 | kfree(iov); |
1310 | if ((ret + (type == READ)) > 0) | 1310 | if ((ret + (type == READ)) > 0) { |
1311 | dnotify_parent(file->f_dentry, | 1311 | struct dentry *dentry = file->f_dentry; |
1312 | (type == READ) ? DN_ACCESS : DN_MODIFY); | 1312 | if (type == READ) |
1313 | fsnotify_access(dentry); | ||
1314 | else | ||
1315 | fsnotify_modify(dentry); | ||
1316 | } | ||
1313 | return ret; | 1317 | return ret; |
1314 | } | 1318 | } |
1315 | 1319 | ||