patch-2.4.19 linux-2.4.19/fs/iobuf.c

Next file: linux-2.4.19/fs/jbd/journal.c
Previous file: linux-2.4.19/fs/intermezzo/vfs.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/fs/iobuf.c linux-2.4.19/fs/iobuf.c
@@ -24,10 +24,13 @@
 
 static void kiobuf_init(struct kiobuf *iobuf)
 {
-	memset(iobuf, 0, sizeof(*iobuf));
 	init_waitqueue_head(&iobuf->wait_queue);
 	iobuf->array_len = KIO_STATIC_PAGES;
-	iobuf->maplist   = iobuf->map_array;
+	iobuf->maplist = iobuf->map_array;
+	iobuf->nr_pages = 0;
+	iobuf->locked = 0;
+	atomic_set(&iobuf->io_count, 0);
+	iobuf->end_io = NULL;
 }
 
 int alloc_kiobuf_bhs(struct kiobuf * kiobuf)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)