Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion boards/arm64/imx9/imx93-evk/configs/bootloader/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ CONFIG_EXPERIMENTAL=y
CONFIG_FILE_STREAM=y
CONFIG_FS_ANONMAP=y
CONFIG_FS_PROCFS=y
CONFIG_FS_REFCOUNT=y
CONFIG_FS_ROMFS=y
CONFIG_FS_ROMFS_CACHE_NODE=y
CONFIG_HAVE_CXX=y
Expand Down
8 changes: 7 additions & 1 deletion fs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,17 @@ config FS_HEAPBUF_SECTION

config FS_REFCOUNT
bool "File reference count"
default !DEFAULT_SMALL
Comment thread
anchao marked this conversation as resolved.
default !DISABLE_PTHREAD
---help---
Enable will Records the number of filep references. The file is
actually closed when the count reaches 0

Note that this option will ensure the safety of access to the file
system from multi-tasks (thread A blocking rw(fd), then thread B close(fd)),
the disadvantage is that it will increase the amount of code-size,
there is no need to enable this option if the application could ensure
he file operations are safe.

source "fs/vfs/Kconfig"
source "fs/aio/Kconfig"
source "fs/semaphore/Kconfig"
Expand Down