Copilot commented on code in PR #21776:
URL: https://github.com/apache/nuttx/pull/21776#discussion_r4564220282
##########
fs/tmpfs/fs_tmpfs.c:
##########
@@ -1511,6 +1511,10 @@ static int tmpfs_getpath(FAR struct tmpfs_object_s *to,
tdo = to->to_parent;
+ /* unlink/rename free names and compact tdo_entry[] under this lock */
Review Comment:
The new comment is slightly inconsistent with the PR description, which
mentions `tmpfs_unlink()`, `tmpfs_rmdir()`, and `tmpfs_rename()` as the
modifiers guarded by this lock. Consider updating the comment to include rmdir
as well (or to generally refer to directory-entry modification/compaction), so
future readers don’t infer that only unlink/rename are relevant.
--
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]