Lines Matching refs:min_key

3811 	struct btrfs_key min_key;  in log_dir_items()  local
3820 min_key.objectid = ino; in log_dir_items()
3821 min_key.type = BTRFS_DIR_INDEX_KEY; in log_dir_items()
3822 min_key.offset = min_offset; in log_dir_items()
3824 ret = btrfs_search_forward(root, &min_key, path, trans->transid); in log_dir_items()
3830 if (ret != 0 || min_key.objectid != ino || in log_dir_items()
3831 min_key.type != BTRFS_DIR_INDEX_KEY) { in log_dir_items()
3832 min_key.objectid = ino; in log_dir_items()
3833 min_key.type = BTRFS_DIR_INDEX_KEY; in log_dir_items()
3834 min_key.offset = (u64)-1; in log_dir_items()
3836 ret = btrfs_search_slot(NULL, root, &min_key, path, 0, 0); in log_dir_items()
3900 ret = btrfs_search_slot(NULL, root, &min_key, path, 0, 0); in log_dir_items()
3935 btrfs_item_key_to_cpu(path->nodes[0], &min_key, path->slots[0]); in log_dir_items()
3936 if (min_key.objectid != ino || min_key.type != BTRFS_DIR_INDEX_KEY) { in log_dir_items()
3950 last_offset = min_key.offset - 1; in log_dir_items()
4068 u64 min_key; in log_directory_changes() local
4076 min_key = BTRFS_DIR_START_INDEX; in log_directory_changes()
4082 ctx, min_key, &max_key); in log_directory_changes()
4087 min_key = max_key + 1; in log_directory_changes()
5454 struct btrfs_key min_key; in log_new_dir_dentries() local
5459 min_key.objectid = ino; in log_new_dir_dentries()
5460 min_key.type = BTRFS_DIR_INDEX_KEY; in log_new_dir_dentries()
5461 min_key.offset = 0; in log_new_dir_dentries()
5464 ret = btrfs_search_forward(root, &min_key, path, trans->transid); in log_new_dir_dentries()
5481 btrfs_item_key_to_cpu(leaf, &min_key, i); in log_new_dir_dentries()
5482 if (min_key.objectid != ino || in log_new_dir_dentries()
5483 min_key.type != BTRFS_DIR_INDEX_KEY) { in log_new_dir_dentries()
5528 if (continue_curr_inode && min_key.offset < (u64)-1) { in log_new_dir_dentries()
5529 min_key.offset++; in log_new_dir_dentries()
5831 struct btrfs_key *min_key, in copy_inode_items_to_log() argument
5847 ret = btrfs_search_forward(root, min_key, path, trans->transid); in copy_inode_items_to_log()
5856 if (min_key->objectid != max_key->objectid) in copy_inode_items_to_log()
5858 if (min_key->type > max_key->type) in copy_inode_items_to_log()
5861 if (min_key->type == BTRFS_INODE_ITEM_KEY) { in copy_inode_items_to_log()
5863 } else if (min_key->type == BTRFS_EXTENT_DATA_KEY && in copy_inode_items_to_log()
5864 min_key->offset >= i_size) { in copy_inode_items_to_log()
5872 } else if ((min_key->type == BTRFS_INODE_REF_KEY || in copy_inode_items_to_log()
5873 min_key->type == BTRFS_INODE_EXTREF_KEY) && in copy_inode_items_to_log()
5880 path->slots[0], min_key, inode, in copy_inode_items_to_log()
5907 } else if (min_key->type == BTRFS_XATTR_ITEM_KEY) { in copy_inode_items_to_log()
5938 btrfs_item_key_to_cpu(path->nodes[0], min_key, in copy_inode_items_to_log()
5952 if (min_key->offset < (u64)-1) { in copy_inode_items_to_log()
5953 min_key->offset++; in copy_inode_items_to_log()
5954 } else if (min_key->type < max_key->type) { in copy_inode_items_to_log()
5955 min_key->type++; in copy_inode_items_to_log()
5956 min_key->offset = 0; in copy_inode_items_to_log()
6373 struct btrfs_key min_key; in btrfs_log_inode() local
6397 min_key.objectid = ino; in btrfs_log_inode()
6398 min_key.type = BTRFS_INODE_ITEM_KEY; in btrfs_log_inode()
6399 min_key.offset = 0; in btrfs_log_inode()
6565 ret = copy_inode_items_to_log(trans, inode, &min_key, &max_key, in btrfs_log_inode()