mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-01 12:04:08 +00:00
btrfs: remove pointless assertion on reclaim_size counter
The reclaim_size counter of a space_info object is unsigned. So its value can never be negative, it's pointless to have an assertion that checks its value is >= 0, therefore remove it. Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
72f4f078de
commit
2d9faa5a8a
1 changed files with 0 additions and 1 deletions
|
@ -1262,7 +1262,6 @@ static int __reserve_metadata_bytes(struct btrfs_fs_info *fs_info,
|
||||||
* the list and we will do our own flushing further down.
|
* the list and we will do our own flushing further down.
|
||||||
*/
|
*/
|
||||||
if (ret && flush != BTRFS_RESERVE_NO_FLUSH) {
|
if (ret && flush != BTRFS_RESERVE_NO_FLUSH) {
|
||||||
ASSERT(space_info->reclaim_size >= 0);
|
|
||||||
ticket.bytes = orig_bytes;
|
ticket.bytes = orig_bytes;
|
||||||
ticket.error = 0;
|
ticket.error = 0;
|
||||||
space_info->reclaim_size += ticket.bytes;
|
space_info->reclaim_size += ticket.bytes;
|
||||||
|
|
Loading…
Add table
Reference in a new issue