mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 05:55:46 +08:00
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:
-13
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user