diff options
author | Alexey Zaytsev <alexey.zaytsev@gmail.com> | 2010-11-15 19:33:27 +0000 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2010-11-29 14:51:26 -0500 |
commit | 2d5df30dfa3cbb7515a2ee7e2037d941d1d76d6f (patch) | |
tree | 3aead7584f6327e0e3c59fb73d38b366bcbe3ecf /fs | |
parent | 50bcd0e8a64089f4f0406bc3c661c9c90a3ad17a (diff) |
nfs: Don't generate duplicated events
The events are already generated by vfs_readv and vfs_writev.
splice does not seem to generate the events, but that's an
other bug.
The patch also removes a couple of unneeded fsnotify.h
inclusions from fs/cachefiles/.
Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/cachefiles/namei.c | 1 | ||||
-rw-r--r-- | fs/cachefiles/xattr.c | 1 | ||||
-rw-r--r-- | fs/nfsd/vfs.c | 3 |
3 files changed, 0 insertions, 5 deletions
diff --git a/fs/cachefiles/namei.c b/fs/cachefiles/namei.c index 42c7fafc8bfe..e33b9a00b3bb 100644 --- a/fs/cachefiles/namei.c +++ b/fs/cachefiles/namei.c @@ -13,7 +13,6 @@ #include <linux/sched.h> #include <linux/file.h> #include <linux/fs.h> -#include <linux/fsnotify.h> #include <linux/quotaops.h> #include <linux/xattr.h> #include <linux/mount.h> diff --git a/fs/cachefiles/xattr.c b/fs/cachefiles/xattr.c index e18b183b47e1..6e050686e9b3 100644 --- a/fs/cachefiles/xattr.c +++ b/fs/cachefiles/xattr.c @@ -13,7 +13,6 @@ #include <linux/sched.h> #include <linux/file.h> #include <linux/fs.h> -#include <linux/fsnotify.h> #include <linux/quotaops.h> #include <linux/xattr.h> #include <linux/slab.h> diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index 184938fcff04..5f30270ae644 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c @@ -20,7 +20,6 @@ #include <linux/fcntl.h> #include <linux/namei.h> #include <linux/delay.h> -#include <linux/fsnotify.h> #include <linux/posix_acl_xattr.h> #include <linux/xattr.h> #include <linux/jhash.h> @@ -924,7 +923,6 @@ nfsd_vfs_read(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, nfsdstats.io_read += host_err; *count = host_err; err = 0; - fsnotify_access(file); } else err = nfserrno(host_err); out: @@ -1035,7 +1033,6 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, goto out_nfserr; *cnt = host_err; nfsdstats.io_write += host_err; - fsnotify_modify(file); /* clear setuid/setgid flag after write */ if (inode->i_mode & (S_ISUID | S_ISGID)) |