Changeset 9127
- Timestamp:
- 11/08/11 14:50:22 (19 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/Orange-Branch/src/client/usrint/iocommon.c
r9126 r9127 978 978 void *user_mem = 0; /* Where to read/write */ 979 979 uint64_t user_mem_size = 0; /* How much to read/write */ 980 uint32_t written = 0; 980 981 981 982 /* Continue read/writing strips of data until the whole block completed */ … … 1029 1030 1030 1031 left -= user_mem_size; 1031 } 1032 return 1; 1032 written += user_mem_size; 1033 } 1034 return written; 1033 1035 } 1034 1036 #endif /* PVFS_UCACHE_ENABLE */ … … 1070 1072 int req_size = 0; /* how many bytes request spans */ 1071 1073 uint32_t blk_size = CACHE_BLOCK_SIZE_K * 1024; 1074 int written = 0; 1072 1075 1073 1076 /* How many bytes does request span? */ … … 1165 1168 &scratch_ptr, 1166 1169 &scratch_left); 1170 written += rc; 1167 1171 } 1168 1172 else /* Miss */ … … 1177 1181 1, 1178 1182 &vector); 1183 written += rc; 1179 1184 } 1180 1185 if(which == 2) /* Write */ … … 1217 1222 &scratch_ptr, 1218 1223 &scratch_left); 1224 written += rc; 1219 1225 } 1220 1226 } … … 1222 1228 lock_unlock(get_lock(ureq[i].ublk_index)); 1223 1229 } 1230 rc = written; 1224 1231 #endif /* PVFS_UCACHE_ENABLE */ 1225 return r eq_size;1232 return rc; 1226 1233 } 1227 1234
