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;
}
-
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/
This archive was generated by hypermail 2b29 : Sat Dec 07 2002 - 22:00:11 EST