splice: fsnotify_access(in), fsnotify_modify(out) on success in tee
[linux-2.6-block.git] / fs / splice.c
index 2cb89f5f9a8a03513a91719faad4dbfa3e6a1a9e..378fedb392ae3c20568595acd0f93197dd739972 100644 (file)
@@ -1929,6 +1929,11 @@ long do_tee(struct file *in, struct file *out, size_t len, unsigned int flags)
                }
        }
 
+       if (ret > 0) {
+               fsnotify_access(in);
+               fsnotify_modify(out);
+       }
+
        return ret;
 }