userlibandfileserver/fileserver/sfile/sf_memory_client.cpp
changeset 245 647ab20fee2e
parent 176 af6ec97d9189
equal deleted inserted replaced
244:a77889bee936 245:647ab20fee2e
   142         ASSERT(0);
   142         ASSERT(0);
   143         }
   143         }
   144 
   144 
   145 	iTouchedRegionFlag = 0;
   145 	iTouchedRegionFlag = 0;
   146 	iReusablePagePool.Close();
   146 	iReusablePagePool.Close();
   147 	iReusablePagePool.Reserve(iReservedRegionMarkInSegs);
   147 	r = iReusablePagePool.Reserve(iReservedRegionMarkInSegs);
       
   148     if (r != KErrNone)
       
   149         {
       
   150         ASSERT(0);
       
   151         }
   148 	}
   152 	}
   149 
   153 
   150 /**
   154 /**
   151 Commit an unused set of contiguous segments. 
   155 Commit an unused set of contiguous segments. 
   152 @param	aSegmentCount	the segment number to be commited.
   156 @param	aSegmentCount	the segment number to be commited.
   227 	
   231 	
   228 	TInt err = iManager.DecommitSegments(aStartRamAddr, aSegmentCount);
   232 	TInt err = iManager.DecommitSegments(aStartRamAddr, aSegmentCount);
   229 	ASSERT(err == KErrNone);
   233 	ASSERT(err == KErrNone);
   230 	if (err != KErrNone)
   234 	if (err != KErrNone)
   231 		return err;
   235 		return err;
   232 	iReusablePagePool.Append(aStartRamAddr);
   236 	err = iReusablePagePool.Append(aStartRamAddr);
       
   237     if (err != KErrNone)
       
   238         return err;
   233 	return KErrNone;
   239 	return KErrNone;
   234 	}
   240 	}
   235 
   241 
   236 /**
   242 /**
   237 Lock a set of contiguous segments. 
   243 Lock a set of contiguous segments.