xiaoxiang781216 commented on code in PR #18767:
URL: https://github.com/apache/nuttx/pull/18767#discussion_r3127823744


##########
include/nuttx/fs/fs.h:
##########
@@ -502,6 +502,12 @@ struct fdlist
 
   FAR struct fd    *fl_prefd;
   struct fd         fl_prefds[CONFIG_NFILE_DESCRIPTORS_PER_BLOCK];
+
+#if CONFIG_FS_BACKTRACE > 0 && defined(CONFIG_FS_BACKTRACE_DYNAMIC)
+  atomic_t           fl_open_count;   /* Current open file descriptor count */

Review Comment:
   I like the simple approach since it isn't good to make the code base become 
complex for improving the performance for a debugging feature.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to