Lines Matching defs:check
371 * check if the tree block can be shared by multiple trees
743 * Before CoWing this block for later modification, check if it's
883 struct btrfs_tree_parent_check check = { 0 };
891 check.level = level - 1;
892 check.transid = btrfs_node_ptr_generation(parent, slot);
893 check.owner_root = btrfs_header_owner(parent);
894 check.has_first_key = true;
895 btrfs_node_key_to_cpu(parent, &check.first_key, slot);
898 &check);
1151 /* double check we haven't messed things up */
1498 struct btrfs_tree_parent_check check = { 0 };
1510 btrfs_node_key_to_cpu(*eb_ret, &check.first_key, slot);
1511 check.has_first_key = true;
1512 check.level = parent_level - 1;
1513 check.transid = gen;
1514 check.owner_root = root->root_key.objectid;
1528 /* first we do an atomic uptodate check */
1531 * Do extra check for first_key, eb can be stale due to
1536 parent_level - 1, &check.first_key, gen)) {
1552 /* now we're allowed to do a blocking uptodate check */
1553 ret = btrfs_read_extent_buffer(tmp, &check);
1583 tmp = read_tree_block(fs_info, blocknr, &check);
1756 /* The level might have changed, check again */
1941 * check will be correct.
2660 /* No key to check in one of the tree blocks */
3061 * and nr indicate which items in the leaf to check. This totals up the
4661 * check this node pointer against the min_trans parameters.
4853 * at the very end of the block. So, check again here and
4863 * So the above check misses one case:
4871 * And a bit more explanation about this check,