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/unmount.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cpukit/libcsupport/src/unmount.c') diff --git a/cpukit/libcsupport/src/unmount.c b/cpukit/libcsupport/src/unmount.c index cf4befe5a4..b58955d33c 100644 --- a/cpukit/libcsupport/src/unmount.c +++ b/cpukit/libcsupport/src/unmount.c @@ -32,7 +32,10 @@ int unmount( const char *path ) rtems_filesystem_mount_table_entry_t *mt_entry = currentloc->mt_entry; if ( rtems_filesystem_location_is_root( currentloc ) ) { - rv = (*mt_entry->mt_point_node->location.ops->unmount_h)( mt_entry ); + const rtems_filesystem_operations_table *mt_point_ops = + mt_entry->mt_point_node->location.mt_entry->ops; + + rv = (*mt_point_ops->unmount_h)( mt_entry ); if ( rv == 0 ) { rtems_filesystem_mt_entry_declare_lock_context( lock_context ); -- cgit v1.2.3