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/chmod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/libcsupport/src/chmod.c') diff --git a/cpukit/libcsupport/src/chmod.c b/cpukit/libcsupport/src/chmod.c index 73333fe831..47de601b98 100644 --- a/cpukit/libcsupport/src/chmod.c +++ b/cpukit/libcsupport/src/chmod.c @@ -25,7 +25,7 @@ int chmod( const char *path, mode_t mode ) const rtems_filesystem_location_info_t *currentloc = rtems_filesystem_eval_path_start( &ctx, path, eval_flags ); - rv = (*currentloc->ops->fchmod_h)( currentloc, mode ); + rv = (*currentloc->mt_entry->ops->fchmod_h)( currentloc, mode ); rtems_filesystem_eval_path_cleanup( &ctx ); -- cgit v1.2.3