18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ci#ifndef BTRFS_DELALLOC_SPACE_H 48c2ecf20Sopenharmony_ci#define BTRFS_DELALLOC_SPACE_H 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_cistruct extent_changeset; 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ciint btrfs_alloc_data_chunk_ondemand(struct btrfs_inode *inode, u64 bytes); 98c2ecf20Sopenharmony_ciint btrfs_check_data_free_space(struct btrfs_inode *inode, 108c2ecf20Sopenharmony_ci struct extent_changeset **reserved, u64 start, u64 len); 118c2ecf20Sopenharmony_civoid btrfs_free_reserved_data_space(struct btrfs_inode *inode, 128c2ecf20Sopenharmony_ci struct extent_changeset *reserved, u64 start, u64 len); 138c2ecf20Sopenharmony_civoid btrfs_delalloc_release_space(struct btrfs_inode *inode, 148c2ecf20Sopenharmony_ci struct extent_changeset *reserved, 158c2ecf20Sopenharmony_ci u64 start, u64 len, bool qgroup_free); 168c2ecf20Sopenharmony_civoid btrfs_free_reserved_data_space_noquota(struct btrfs_fs_info *fs_info, 178c2ecf20Sopenharmony_ci u64 len); 188c2ecf20Sopenharmony_civoid btrfs_delalloc_release_metadata(struct btrfs_inode *inode, u64 num_bytes, 198c2ecf20Sopenharmony_ci bool qgroup_free); 208c2ecf20Sopenharmony_ciint btrfs_delalloc_reserve_space(struct btrfs_inode *inode, 218c2ecf20Sopenharmony_ci struct extent_changeset **reserved, u64 start, u64 len); 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci#endif /* BTRFS_DELALLOC_SPACE_H */ 24