Skip to content
Commit 08496ff6 authored by Adrien Ricciardi's avatar Adrien Ricciardi Committed by Alberto Escolar
Browse files

fs: nvs: Improve nvs_calc_free_space() result precision



The nvs_calc_free_space() function does not return 0 when the NVS
is considered full, because some special ATEs are not taken into account.

This commit takes into account the ATE that is reserved for deletion in
each sector, in addition of the 'GC done' ATE when present.

Signed-off-by: default avatarAdrien Ricciardi <aricciardi@baylibre.com>
parent 1d1dc7a8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment