zephyr/subsys
Laczen JMS 7989801966 fs/nvs: Improve init speed and remove fs->locked
This patch removes the free space calculation from nvs initialization.
The available space can be calculated if required using the routine
nvs_calc_free_space.

This patch also removes the locked state of nvs, it is not possible to
get in a locked state.

Changes:

Removed locked state and free_space from the nvs structure.

nvs_reinit(): has been replaced with by an internal only function
_nvs_startup().

nvs_write(): removed the possibility to place the file system in a
locked state, if to many gc operations are required it will return
-ENOSPC.

ssize_t nvs_calc_free_space(): introduced, calculates the free space
that is available in the nvs file system.

Signed-off-by: Laczen JMS <laczenjms@gmail.com>
2019-02-21 09:32:52 -05:00
..
app_memory app_shmem: overhaul partition specification 2019-02-08 07:04:30 -05:00
bluetooth Bluetooth: host: Use log_strdup() for stack strings 2019-02-21 09:25:50 -05:00
console console: Remove CONFIG_WEBSOCKET_CONSOLE code 2019-02-11 22:29:58 -05:00
cpp c++: kconfig: EXCEPTIONS needs to depend on NEWLIB_LIBC 2018-11-28 13:51:35 -08:00
debug debug: Place Kconfig tracing options in debug submenu 2019-02-14 10:29:06 -05:00
dfu dfu: mcuboot: rename boot_swap_type> mcuboot_swap_type 2019-02-19 09:32:02 +01:00
disk include: misc: util.h: Rename min/max to MIN/MAX 2019-02-14 22:16:03 -05:00
fb shell: Modify subcommands to use SHELL_STATIC_SUBCMD_SET_CREATE 2019-02-20 07:31:35 -05:00
fs fs/nvs: Improve init speed and remove fs->locked 2019-02-21 09:32:52 -05:00
jwt jwt: Add JSON web token library 2019-02-08 15:32:58 -06:00
logging shell: Deprecate macros for subcommands creation 2019-02-20 07:31:35 -05:00
mgmt shell: removing legacy shell 2019-01-16 21:35:36 -05:00
net net/l2: Switch OpenThread L2 to new net_pkt allocator 2019-02-21 09:30:20 -05:00
power power: policy_residency: Update Kconfig options description 2019-02-19 13:25:36 -05:00
random subsys: random: xoroshiro128: Use entropy get isr during init 2018-09-05 13:04:20 -04:00
settings include: misc: util.h: Rename min/max to MIN/MAX 2019-02-14 22:16:03 -05:00
shell shell: Modify subcommands to use SHELL_STATIC_SUBCMD_SET_CREATE 2019-02-20 07:31:35 -05:00
stats stats: move from misc to subsys/stats 2018-11-12 08:01:15 -05:00
storage storage: flash_map: fix copyright assignment 2019-02-11 20:40:47 -06:00
usb usb/net: fix ECM driver in composite mode 2019-02-19 11:26:47 -05:00
CMakeLists.txt jwt: Add JSON web token library 2019-02-08 15:32:58 -06:00
Kconfig power: Rework OS <-> Application interface 2019-02-19 13:25:36 -05:00