linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sendfile: allows bypassing of notifier events
@ 2012-11-20 16:31 Alan Cox
  2012-11-20 22:43 ` Dave Chinner
  0 siblings, 1 reply; 2+ messages in thread
From: Alan Cox @ 2012-11-20 16:31 UTC (permalink / raw)
  To: linux-fsdevel, linux-kernel

From: Scott Wolchok <swolchok@umich.edu>

Signed-off-by: Alan Cox <alan@linux.intel.com>
Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=12812
---

 fs/read_write.c |    2 ++
 1 file changed, 2 insertions(+)


diff --git a/fs/read_write.c b/fs/read_write.c
index d065348..1c7f101 100644
--- a/fs/read_write.c
+++ b/fs/read_write.c
@@ -935,6 +935,8 @@ ssize_t do_sendfile(int out_fd, int in_fd, loff_t *ppos, size_t count,
 	if (retval > 0) {
 		add_rchar(current, retval);
 		add_wchar(current, retval);
+		fsnotify_access(in.file);
+		fsnotify_access(out.file);
 	}
 
 	inc_syscr(current);

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-11-20 22:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-20 16:31 [PATCH] sendfile: allows bypassing of notifier events Alan Cox
2012-11-20 22:43 ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).