Re: [PATCH 14/23] btrfs: add btrfs_reserve_data_bytes and use it

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

 



On 04/02/2020 17:20, Josef Bacik wrote:
> +/**
> + * btrfs_reserve_data_bytes - try to reserve data bytes for an allocation
> + * @root - the root we are allocating for
> + * @bytes - the number of bytes we need
> + * @flush - how we are allowed to flush
> + *
> + * This will reserve bytes from the data space info.  If there is not enough
> + * space then we will attempt to flush space as specified ty flush.
> + */
> +int btrfs_reserve_data_bytes(struct btrfs_fs_info *fs_info, u64 bytes,
> +			     enum btrfs_reserve_flush_enum flush)
> +{

s/@root/@fs_info/

Otherwise:
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@xxxxxxx>




[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