relocation.c (ac5887c8e013d6754d36e6d51dc03448ee0b0065) | relocation.c (bfb484d922a317183d77b3b6db77a2ff659384cc) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2009 Oracle. All rights reserved. 4 */ 5 6#include <linux/sched.h> 7#include <linux/pagemap.h> 8#include <linux/writeback.h> --- 2528 unchanged lines hidden (view full) --- 2537 if (!path) { 2538 err = -ENOMEM; 2539 goto out_free_blocks; 2540 } 2541 2542 /* Kick in readahead for tree blocks with missing keys */ 2543 rbtree_postorder_for_each_entry_safe(block, next, blocks, rb_node) { 2544 if (!block->key_ready) | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2009 Oracle. All rights reserved. 4 */ 5 6#include <linux/sched.h> 7#include <linux/pagemap.h> 8#include <linux/writeback.h> --- 2528 unchanged lines hidden (view full) --- 2537 if (!path) { 2538 err = -ENOMEM; 2539 goto out_free_blocks; 2540 } 2541 2542 /* Kick in readahead for tree blocks with missing keys */ 2543 rbtree_postorder_for_each_entry_safe(block, next, blocks, rb_node) { 2544 if (!block->key_ready) |
2545 readahead_tree_block(fs_info, block->bytenr); | 2545 btrfs_readahead_tree_block(fs_info, block->bytenr, 0); |
2546 } 2547 2548 /* Get first keys */ 2549 rbtree_postorder_for_each_entry_safe(block, next, blocks, rb_node) { 2550 if (!block->key_ready) { 2551 err = get_tree_block_key(fs_info, block); 2552 if (err) 2553 goto out_free_path; --- 1498 unchanged lines hidden --- | 2546 } 2547 2548 /* Get first keys */ 2549 rbtree_postorder_for_each_entry_safe(block, next, blocks, rb_node) { 2550 if (!block->key_ready) { 2551 err = get_tree_block_key(fs_info, block); 2552 if (err) 2553 goto out_free_path; --- 1498 unchanged lines hidden --- |