lkml.org 
[lkml]   [2012]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] sendfile: allows bypassing of notifier events
From
Date
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);


\
 
 \ /
  Last update: 2012-11-20 18:21    [W:0.036 / U:1.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site