[Pvfs2-cvs] commit by slang in pvfs2/src/apps/kernel/linux: pvfs2-client-core.c

CVS commit program cvs at parl.clemson.edu
Tue Jan 9 02:24:26 EST 2007


Update of /projects/cvsroot/pvfs2/src/apps/kernel/linux
In directory parlweb1:/tmp/cvs-serv10518/src/apps/kernel/linux

Modified Files:
	pvfs2-client-core.c 
Log Message:

See: http://www.beowulf-underground.org/pipermail/pvfs2-users/2007-January/001690.html



Index: pvfs2-client-core.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/apps/kernel/linux/pvfs2-client-core.c,v
diff -p -u -r1.79 -r1.80
--- pvfs2-client-core.c	5 Dec 2006 23:21:06 -0000	1.79
+++ pvfs2-client-core.c	9 Jan 2007 07:24:26 -0000	1.80
@@ -1414,7 +1414,7 @@ static PVFS_error post_io_readahead_requ
 
     assert((vfs_request->in_upcall.req.io.buf_index > -1) &&
            (vfs_request->in_upcall.req.io.buf_index <
-            pvfs2_bufmap_desc_count));
+            s_desc_params[BM_IO].dev_buffer_count));
 
     vfs_request->io_tmp_buf = malloc(
         vfs_request->in_upcall.req.io.readahead_size);
@@ -1561,7 +1561,7 @@ static PVFS_error post_io_request(vfs_re
 
     assert((vfs_request->in_upcall.req.io.buf_index > -1) &&
            (vfs_request->in_upcall.req.io.buf_index <
-            s_desc_params[BM_IO].dev_buffer_size));
+            s_desc_params[BM_IO].dev_buffer_count));
 
     /* get a shared kernel/userspace buffer for the I/O transfer */
     vfs_request->io_kernel_mapped_buf = 
@@ -1637,7 +1637,7 @@ static PVFS_error post_iox_request(vfs_r
 
     if ((vfs_request->in_upcall.req.iox.buf_index < 0) ||
            (vfs_request->in_upcall.req.iox.buf_index >= 
-            s_desc_params[BM_IO].dev_buffer_size))
+            s_desc_params[BM_IO].dev_buffer_count))
     {
         gossip_err("post_iox_request: invalid buffer index %d\n",
                 vfs_request->in_upcall.req.iox.buf_index);
@@ -2371,7 +2371,7 @@ static inline void package_downcall_memb
                     assert(buf);
 
                     /* copy cached data into the shared user/kernel space */
-                    memcpy(buf, (vfs_request->io_tmp_buf +
+                    memcpy(buf, ((char *) vfs_request->io_tmp_buf +
                                  vfs_request->in_upcall.req.io.offset),
                            vfs_request->in_upcall.req.io.count);
 



More information about the Pvfs2-cvs mailing list