nuttx/fs/vfs
fangxinyong ea52220509 fs/shmfs: fix inode leak issue
If the shm file is removed and a subsequent close, only release shm
object, but inode is leaked. Should decrease refcount to release inode
when unmapped, that matched with refcount increase when mapped.

Another fix that remove the shm file failed.
nsh> rm /var/shm/pts_mmap_1_2_5
nsh: rm: unlink failed: 6

Signed-off-by: fangxinyong <fangxinyong@xiaomi.com>
2023-08-02 22:57:28 -07:00
..
CMakeLists.txt cmake: fix CMake build break 2023-07-15 23:32:36 +08:00
fs_chstat.c
fs_close.c fs/vfs: Zero file struct field with memset 2023-05-08 17:56:07 +03:00
fs_dir.c vfs: return OK when fsync dir 2023-07-31 07:50:10 -07:00
fs_dup2.c vfs/dup: add nonblock flag to avoid happening block when dup 2023-07-28 07:41:51 -07:00
fs_dup.c
fs_epoll.c add refcnt using epoll_create to fix bug when use popen which dup the fd and close at end after epoll_create 2023-07-13 01:06:53 +08:00
fs_eventfd.c
fs_fchstat.c
fs_fcntl.c
fs_fdopen.c
fs_fstat.c libc/modlib: Replace nx_stat with file_stat 2023-07-06 09:20:24 -03:00
fs_fstatfs.c fs: move memset to upper lever for statfs 2023-06-16 11:10:25 +08:00
fs_fsync.c fs_fsync: should not call fs's ioctl when fs not support sync api 2023-06-17 19:31:17 +08:00
fs_ioctl.c semantic/parser: fix compile warning found by sparse 2023-05-30 23:00:00 +08:00
fs_link.c
fs_lseek.c
fs_mkdir.c
fs_open.c open: Use file mode only when O_CREAT is specified. 2023-08-02 06:08:20 -07:00
fs_poll.c fs_poll: Fix wrong return value in CONFIG_BUILD_KERNEL 2023-05-25 20:41:20 +08:00
fs_pread.c
fs_pseudofile.c vfs/fs_pseudofile: fix coverity issue 2023-07-31 22:22:58 -07:00
fs_pwrite.c
fs_read.c
fs_readlink.c
fs_rename.c Fixes in asprintf usage. 2023-04-19 02:48:39 +08:00
fs_rmdir.c
fs_select.c libc/fdcheck: add fdcheck module 2023-06-10 02:19:58 +08:00
fs_sendfile.c sendfile: Fixed behavior of sendfile when count is set to zero. 2023-06-22 16:10:58 +08:00
fs_signalfd.c fs/vfs: Proper use of sigisemptyset 2023-06-15 10:11:36 -03:00
fs_stat.c fs/pseudofile: config pseudofile feature 2023-07-31 22:22:58 -07:00
fs_statfs.c fs: move memset to upper lever for statfs 2023-06-16 11:10:25 +08:00
fs_symlink.c
fs_timerfd.c
fs_truncate.c fs/vfs: ftruncate produce EINVAL if fd is not open for writing 2023-08-02 22:57:28 -07:00
fs_unlink.c fs/shmfs: fix inode leak issue 2023-08-02 22:57:28 -07:00
fs_write.c
Kconfig
Make.defs fs/pseudofile: config pseudofile feature 2023-07-31 22:22:58 -07:00