Commit 114d2a8e authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Greg Kroah-Hartman

[PATCH] dnotify fix for readv/writev

From Pengcheng Zou <pczou@redflag-linux.com>:
>
> Orignally DN_MODIFY is issued on readv while DN_ACCESS is issued on writev,
> which is obviously wrong. This patch fixes such problem.

This is the equivalent patch for 2.5.50+.
parent 97ae7124
......@@ -447,7 +447,7 @@ static ssize_t do_readv_writev(int type, struct file *file,
kfree(iov);
if ((ret + (type == READ)) > 0)
dnotify_parent(file->f_dentry,
(type == READ) ? DN_MODIFY : DN_ACCESS);
(type == READ) ? DN_ACCESS : DN_MODIFY);
return ret;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment