fs/fs: remove unnecessary FS_REFCOUNT config

Previously, this config was added to ensure that the size of the struct
file remained unchanged, thereby preventing the Flash memory of
resource-constrained MCUs from being unnecessarily increased.

However, we have now refactored the relationship between struct fd and struct file,
reducing their memory footprint in both Flash and RAM.
Consequently, this config can be removed.

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
dongjiuzhu1
2025-06-02 17:02:18 +08:00
committed by Xiang Xiao
parent 1e787ea280
commit 3bc3092e6a
6 changed files with 0 additions and 38 deletions
-13
View File
@@ -127,19 +127,6 @@ config FS_HEAPBUF_SECTION
Allocated fs heap from the specified section. If not
specified, it will alloc from kernel heap.
config FS_REFCOUNT
bool "File reference count"
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"