| Index: net/disk_cache/entry_impl.cc
|
| ===================================================================
|
| --- net/disk_cache/entry_impl.cc (revision 201602)
|
| +++ net/disk_cache/entry_impl.cc (working copy)
|
| @@ -1181,8 +1181,7 @@
|
| if (!backend_->CreateExternalFile(address))
|
| return false;
|
| } else {
|
| - int num_blocks = (size + Addr::BlockSizeForFileType(file_type) - 1) /
|
| - Addr::BlockSizeForFileType(file_type);
|
| + int num_blocks = Addr::RequiredBlocks(size, file_type);
|
|
|
| if (!backend_->CreateBlock(file_type, num_blocks, address))
|
| return false;
|
|
|