mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +08:00
fs/romfs: Move rn_child/rn_count before rn_namesize
which could save 4 bytes for each node Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
27137113f1
commit
2ab9a848a0
+2
-4
@@ -160,14 +160,12 @@ struct romfs_file_s
|
|||||||
|
|
||||||
struct romfs_nodeinfo_s
|
struct romfs_nodeinfo_s
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_FS_ROMFS_CACHE_NODE
|
|
||||||
FAR struct romfs_nodeinfo_s **rn_child; /* The node array for link to lower level */
|
|
||||||
uint16_t rn_count; /* The count of node in rn_child level */
|
|
||||||
#endif
|
|
||||||
uint32_t rn_offset; /* Offset of real file header */
|
uint32_t rn_offset; /* Offset of real file header */
|
||||||
uint32_t rn_next; /* Offset of the next file header+flags */
|
uint32_t rn_next; /* Offset of the next file header+flags */
|
||||||
uint32_t rn_size; /* Size (if file) */
|
uint32_t rn_size; /* Size (if file) */
|
||||||
#ifdef CONFIG_FS_ROMFS_CACHE_NODE
|
#ifdef CONFIG_FS_ROMFS_CACHE_NODE
|
||||||
|
FAR struct romfs_nodeinfo_s **rn_child; /* The node array for link to lower level */
|
||||||
|
uint16_t rn_count; /* The count of node in rn_child level */
|
||||||
uint8_t rn_namesize; /* The length of name of the entry */
|
uint8_t rn_namesize; /* The length of name of the entry */
|
||||||
char rn_name[1]; /* The name to the entry */
|
char rn_name[1]; /* The name to the entry */
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user