Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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. (cherry picked from commit 08496ff) Original-Signed-off-by: Adrien Ricciardi <aricciardi@baylibre.com> GitOrigin-RevId: 08496ff Change-Id: I53ec160b59b5f9038d5ca363367cdc8e6cb7435d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5663173 Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com> Tested-by: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
- Loading branch information