Re: [PATCH v2 1/3] btrfs: backref: Introduce the skeleton of btrfs_backref_iterator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



<snip>

> + * This helper is here to determine if that's the case.
> + */
> +static inline bool btrfs_backref_has_tree_block_info(
> +		struct btrfs_backref_iterator *iterator)
> +{
> +	if (iterator->cur_key.type == BTRFS_EXTENT_ITEM_KEY &&
> +	    iterator->cur_ptr - iterator->item_ptr ==
> +	    sizeof(struct btrfs_extent_item))
> +		return true;
> +	return false;
> +}
> +
> +int btrfs_backref_iterator_start(struct btrfs_backref_iterator *iterator,
> +				 u64 bytenr);
> +int btrfs_backref_iterator_next(struct btrfs_backref_iterator *iterator);

You are exposing a function here which is not implemented. Remove this
line and add it in the next patch where you actually introduce
iterator_next.

> +
>  #endif
> 



[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux