+ BlueSkyProfile *profile = bluesky_profile_get();
+
+ bluesky_profile_add_event(profile,
+ g_strdup_printf("Start file read prefetch"));
+ uint64_t start_block, end_block;
+ start_block = offset / BLUESKY_BLOCK_SIZE;
+ end_block = (offset + len - 1) / BLUESKY_BLOCK_SIZE;
+ for (uint64_t i = start_block; i <= end_block; i++) {
+ BlueSkyBlock *b = &g_array_index(inode->blocks, BlueSkyBlock,
+ i);
+ if (b->type == BLUESKY_BLOCK_REF)
+ bluesky_cloudlog_prefetch(b->ref);
+ }
+
+ bluesky_profile_add_event(profile,
+ g_strdup_printf("End file read prefetch"));
+