From da154e14f69e909a71ab0479c02dd56158f66ee0 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 14 May 2012 16:55:41 +0200 Subject: Filesystem: Move operations to mount table entry The scope of the file system operations is the file system instance. The scope of the file system node handlers is the file location. The benefit of moving the operations to the mount table entry is a size reduction of the file location (rtems_filesystem_location_info_t). The code size is slightly increased due to additional load instructions. Restructure rtems_filesystem_mount_table_entry_t to improve cache efficiency. --- cpukit/libcsupport/src/__usrenv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/libcsupport/src/__usrenv.c') diff --git a/cpukit/libcsupport/src/__usrenv.c b/cpukit/libcsupport/src/__usrenv.c index 73d2b06366..6a793755ab 100644 --- a/cpukit/libcsupport/src/__usrenv.c +++ b/cpukit/libcsupport/src/__usrenv.c @@ -220,6 +220,7 @@ rtems_filesystem_mount_table_entry_t rtems_filesystem_null_mt_entry = { .fill = &rtems_filesystem_global_location_null.location.mt_entry_node, } }, + .ops = &null_ops, .mt_point_node = &rtems_filesystem_global_location_null, .mt_fs_root = &rtems_filesystem_global_location_null, .mounted = false, @@ -233,7 +234,6 @@ rtems_filesystem_global_location_t rtems_filesystem_global_location_null = { .previous = &rtems_filesystem_null_mt_entry.location_chain.Head.Node }, .handlers = &rtems_filesystem_null_handlers, - .ops = &null_ops, .mt_entry = &rtems_filesystem_null_mt_entry }, -- cgit v1.2.3