Skip to content

Commit baa716a

Browse files
Zhangshoukuixiaoxiang781216
authored andcommitted
fs: Dump the list of files when the file description runs out
Signed-off-by: zhangshoukui <zhangshoukui@xiaomi.com>
1 parent 8e4e09b commit baa716a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/inode/fs_files.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ static int files_extend(FAR struct filelist *list, size_t row)
132132

133133
if (CONFIG_NFILE_DESCRIPTORS_PER_BLOCK * orig_rows > OPEN_MAX)
134134
{
135+
files_dumplist(list);
135136
return -EMFILE;
136137
}
137138

0 commit comments

Comments
 (0)