Skip to content

Commit d7872e9

Browse files
committed
Tinker with slop space accounting with dedup
Let's not include the deduplicated space usage in the slop space reservation, it leads to surprising outcomes. Signed-off-by: Rich Ercolani <[email protected]>
1 parent 069bf40 commit d7872e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/zfs/spa_misc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1798,7 +1798,7 @@ spa_get_worst_case_asize(spa_t *spa, uint64_t lsize)
17981798
uint64_t
17991799
spa_get_slop_space(spa_t *spa)
18001800
{
1801-
uint64_t space = spa_get_dspace(spa);
1801+
uint64_t space = spa_get_dspace(spa) - spa->spa_dedup_dspace;
18021802
uint64_t slop = MIN(space >> spa_slop_shift, spa_max_slop);
18031803

18041804
/*

0 commit comments

Comments
 (0)