xiaoxiang781216 commented on code in PR #7434: URL: https://github.com/apache/incubator-nuttx/pull/7434#discussion_r1007557617
########## fs/inode/fs_files.c: ########## @@ -225,17 +235,24 @@ int files_allocate(FAR struct inode *inode, int oflags, off_t pos, /* The space of file array isn't enough, allocate a new filechunk */ ret = files_extend(list, i + 1); - if (ret >= 0) + if (ret < 0) Review Comment: I want to move inode_addref out of lock to improve the concurrency a little bit:) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org