Commit 745699ef authored by Xiaoguang Wang's avatar Xiaoguang Wang Committed by David Sterba

btrfs: remove useless comments

Fixes: ("btrfs: update btrfs_space_info's bytes_may_use timely")
Signed-off-by: default avatarWang Xiaoguang <wangxg.fnst@cn.fujitsu.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent ebce0e01
...@@ -6499,16 +6499,9 @@ void btrfs_wait_block_group_reservations(struct btrfs_block_group_cache *bg) ...@@ -6499,16 +6499,9 @@ void btrfs_wait_block_group_reservations(struct btrfs_block_group_cache *bg)
* @num_bytes: The number of bytes in question * @num_bytes: The number of bytes in question
* @delalloc: The blocks are allocated for the delalloc write * @delalloc: The blocks are allocated for the delalloc write
* *
* This is called by the allocator when it reserves space. Metadata * This is called by the allocator when it reserves space. If this is a
* reservations should be called with RESERVE_ALLOC so we do the proper * reservation and the block group has become read only we cannot make the
* ENOSPC accounting. For data we handle the reservation through clearing the * reservation and return -EAGAIN, otherwise this function always succeeds.
* delalloc bits in the io_tree. We have to do this since we could end up
* allocating less disk space for the amount of data we have reserved in the
* case of compression.
*
* If this is a reservation and the block group has become read only we cannot
* make the reservation and return -EAGAIN, otherwise this function always
* succeeds.
*/ */
static int btrfs_add_reserved_bytes(struct btrfs_block_group_cache *cache, static int btrfs_add_reserved_bytes(struct btrfs_block_group_cache *cache,
u64 ram_bytes, u64 num_bytes, int delalloc) u64 ram_bytes, u64 num_bytes, int delalloc)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment