diff options
author | Dennis Zhou <dennis@kernel.org> | 2019-02-04 15:20:07 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-02-25 14:13:33 +0100 |
commit | d3c6ab752c4145cba9af85021f02bc4655534f93 (patch) | |
tree | 619cc94662837e3fb69c38bb1a1173c95f218e5c /fs/btrfs/super.c | |
parent | e0dc87afcdb890e542f6080296ce591cd348c25d (diff) | |
download | lwn-d3c6ab752c4145cba9af85021f02bc4655534f93.tar.gz lwn-d3c6ab752c4145cba9af85021f02bc4655534f93.zip |
btrfs: make zstd memory requirements monotonic
It is possible based on the level configurations that a higher level
workspace uses less memory than a lower level workspace. In order to
reuse workspaces, this must be made a monotonic relationship. This
precomputes the required memory for each level and enforces the
monotonicity between level and memory required. This is also done
in upstream zstd in [1].
[1] https://github.com/facebook/zstd/commit/a68b76afefec6876f8e8a538155109a5aeac0143
Cc: Nick Terrell <terrelln@fb.com>
Signed-off-by: Dennis Zhou <dennis@kernel.org>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/super.c')
0 files changed, 0 insertions, 0 deletions