The unified diff between revisions [7460dbcf..] and [e6beb7c9..] is displayed below. It can also be downloaded as a raw diff.

This diff has been restricted to the following files: 'src/fs/coss/store_io_coss.c'

#
#
# patch "src/fs/coss/store_io_coss.c"
#  from [2c3038b076f7281b9a40222f3b57730ee3ce9edf]
#    to [d903b5fc046ce7be75b5c1584e88fec70a8c0a22]
#
============================================================
--- src/fs/coss/store_io_coss.c	2c3038b076f7281b9a40222f3b57730ee3ce9edf
+++ src/fs/coss/store_io_coss.c	d903b5fc046ce7be75b5c1584e88fec70a8c0a22
@@ -179,6 +179,7 @@ storeCossCreate(SwapDir * SD, StoreEntry
 {
     CossState *cstate;
     storeIOState *sio;
+    CossInfo *cs = SD->fsdata;

     coss_stats.create.ops++;
     sio = cbdataAlloc(storeIOState);
@@ -216,7 +217,7 @@ storeCossCreate(SwapDir * SD, StoreEntry
     /* Now add it into the index list */
     e->swap_filen = sio->swap_filen;
     e->swap_dirn = sio->swap_dirn;
-    storeCossAdd(SD, e);
+    storeCossAdd(SD, e, cs->curstripe);

     storeCossMemBufLock(SD, sio);
     coss_stats.create.success++;
@@ -305,7 +306,7 @@ storeCossOpen(SwapDir * SD, StoreEntry *
 	 * Do the index magic to keep the disk and memory LRUs identical
 	 * by adding the object into the link list on the current stripe
 	 */
-	storeCossAdd(SD, e);
+	storeCossAdd(SD, e, cs->curstripe);
     }
     coss_stats.open.success++;
     return sio;