nuttx/fs/vfs
Zhe Weng 14602be4cc fs/lock: Limit inode type for file locks
When we close a socket fd, it will call get path on sockets.
`close(socket_fd)` -> `file_closelk(filep)` -> `file_fcntl(F_GETPATH)`
It causes a heavy stack load for each socket close operation.
(We have `GETPATH` for sockets to be used for `fdinfo`)

But the socket fds are not intended to be used for file locks.
And so do some other file types, so we may just limit the usage of flock.

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2024-02-21 13:29:36 -03:00
..
CMakeLists.txt cmake: add include path for special source 2023-11-07 17:39:03 +01:00
fs_chstat.c
fs_close.c fs_lock:Implementing file locks 2024-02-21 13:29:36 -03:00
fs_dir.c
fs_dup2.c fs/dup3: impletement dup3/nx_dup3_from_tcb function 2023-10-27 21:15:07 +08:00
fs_dup.c fs/dup3: impletement dup3/nx_dup3_from_tcb function 2023-10-27 21:15:07 +08:00
fs_epoll.c fs_epoll: serveral epoll issues fix 2023-11-02 00:44:52 +08:00
fs_eventfd.c poll: pollsetup should notify only one fd passd by caller 2023-11-21 09:07:17 +01:00
fs_fchstat.c
fs_fcntl.c fs_lock:Implementing file locks 2024-02-21 13:29:36 -03:00
fs_fstat.c
fs_fstatfs.c
fs_fsync.c
fs_ioctl.c
fs_link.c
fs_lock.c fs/lock: Limit inode type for file locks 2024-02-21 13:29:36 -03:00
fs_lseek.c compiler/tasking: fix unreachable code on tasking toolchain 2024-01-30 20:53:00 -08:00
fs_mkdir.c
fs_open.c fs: Change inode_checkflags to static function 2023-10-22 21:23:08 +03:00
fs_poll.c fs: procfs add poll support 2023-12-26 19:23:13 -08:00
fs_pread.c
fs_pseudofile.c add munmap logic to pseudofs 2023-10-13 03:17:27 +08:00
fs_pwrite.c
fs_read.c
fs_readlink.c
fs_rename.c fs/rename: fix use after free issue about rename 2023-10-26 01:04:23 +08:00
fs_rmdir.c
fs_select.c
fs_sendfile.c
fs_signalfd.c poll: pollsetup should notify only one fd passd by caller 2023-11-21 09:07:17 +01:00
fs_stat.c fs/shmfs: Fix stat() system call for shmfs object 2024-02-02 09:12:18 -08:00
fs_statfs.c
fs_symlink.c
fs_syncfs.c fs: Add VFS docs 2024-02-20 18:28:09 -08:00
fs_timerfd.c poll: pollsetup should notify only one fd passd by caller 2023-11-21 09:07:17 +01:00
fs_truncate.c
fs_unlink.c
fs_write.c
Kconfig
lock.h fs_lock:Implementing file locks 2024-02-21 13:29:36 -03:00
Make.defs fs_lock:Implementing file locks 2024-02-21 13:29:36 -03:00