summaryrefslogtreecommitdiff
path: root/components/dfs
diff options
context:
space:
mode:
authorguozhanxin <[email protected]>2018-09-20 12:03:29 +0800
committerguozhanxin <[email protected]>2018-09-20 12:03:29 +0800
commit42d181307ea7ea4077e20a6b2e3977a4b502a08d (patch)
tree4666cfdb0dc53ff980227fbd78505263fcd0fec9 /components/dfs
parent51729e6a7c7d920b84763864c5ca7d805cb8d759 (diff)
[components][dfs][ramfs] add RT_Object_Class_MemHeap flag for ramfs->memheap
Diffstat (limited to 'components/dfs')
-rw-r--r--components/dfs/filesystems/ramfs/dfs_ramfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/dfs/filesystems/ramfs/dfs_ramfs.c b/components/dfs/filesystems/ramfs/dfs_ramfs.c
index c4b0f44d6d..d7911a622d 100644
--- a/components/dfs/filesystems/ramfs/dfs_ramfs.c
+++ b/components/dfs/filesystems/ramfs/dfs_ramfs.c
@@ -453,6 +453,7 @@ struct dfs_ramfs* dfs_ramfs_create(rt_uint8_t *pool, rt_size_t size)
/* initialize ramfs object */
ramfs->magic = RAMFS_MAGIC;
+ ramfs->memheap.parent.type = RT_Object_Class_MemHeap | RT_Object_Class_Static;
/* initialize root directory */
memset(&(ramfs->root), 0x00, sizeof(ramfs->root));