![]() | ||||||||||
Messages in this thread Patch in this message |
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; } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ | |||||||||
| Last update: 2005-03-22 12:31 [from the cache] ©2003-2008 | ||||||||||