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


##########
fs/inode/fs_inodefree.c:
##########
@@ -76,6 +80,18 @@ void inode_free(FAR struct inode *inode)
         }
 #endif
 
+#ifdef CONFIG_FS_SHMFS
+      /* The object of a shm inode goes with the inode.  The last close,
+       * munmap or unlink frees it earlier, but not while a hard link keeps
+       * the inode: then the removal of the last name frees the inode here.
+       */
+
+      if (INODE_IS_SHM(inode))
+        {
+          shmfs_free_object(inode->i_private);

Review Comment:
   could we move to unlink/close callack of shmfs?



-- 
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