* [PATCH] dnotify fix for readv/writev (Linux 2.4.20)
@ 2002-12-02 1:22 Zou Pengcheng
2002-12-02 5:31 ` Stephen Rothwell
0 siblings, 1 reply; 2+ messages in thread
From: Zou Pengcheng @ 2002-12-02 1:22 UTC (permalink / raw)
To: Marcelo Tosatti; +Cc: linux-kernel
hi, Marcelo,
this is a patch to fix the dnotify bug of readv/writev.
Orignally DN_MODIFY is issued on readv while DN_ACCESS is issued on writev,
which is obviously wrong. This patch fixes such problem.
cheers,
-- Pengcheng Zou
diff -uNr fs/read_write.c.orig fs/read_write.c
--- fs/read_write.c.orig Mon Dec 2 09:07:34 2002
+++ fs/read_write.c Mon Dec 2 09:08:26 2002
@@ -315,7 +315,7 @@
/* VERIFY_WRITE actually means a read, as we write to user space */
if ((ret + (type == VERIFY_WRITE)) > 0)
dnotify_parent(file->f_dentry,
- (type == VERIFY_WRITE) ? DN_MODIFY : DN_ACCESS);
+ (type == VERIFY_WRITE) ? DN_ACCESS : DN_MODIFY);
return ret;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] dnotify fix for readv/writev (Linux 2.4.20)
2002-12-02 1:22 [PATCH] dnotify fix for readv/writev (Linux 2.4.20) Zou Pengcheng
@ 2002-12-02 5:31 ` Stephen Rothwell
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Rothwell @ 2002-12-02 5:31 UTC (permalink / raw)
To: Linus; +Cc: linux-kernel, Zou Pengcheng, Trivial Kernel Patches
Hi Linus,
On Mon, 2 Dec 2002 09:22:43 +0800 Zou Pengcheng <pczou@redflag-linux.com> wrote:
>
> this is a patch to fix the dnotify bug of readv/writev.
>
> Orignally DN_MODIFY is issued on readv while DN_ACCESS is issued on writev,
> which is obviously wrong. This patch fixes such problem.
>
> cheers,
> -- Pengcheng Zou
This is the equivalent patch for 2.5.50+.
Please apply.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
diff -ruN 2.5.50-BK/fs/read_write.c 2.5.50-BK-dnotify/fs/read_write.c
--- 2.5.50-BK/fs/read_write.c 2002-12-02 16:25:50.000000000 +1100
+++ 2.5.50-BK-dnotify/fs/read_write.c 2002-12-02 16:28:39.000000000 +1100
@@ -447,7 +447,7 @@
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;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-12-02 5:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-02 1:22 [PATCH] dnotify fix for readv/writev (Linux 2.4.20) Zou Pengcheng
2002-12-02 5:31 ` Stephen Rothwell
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).