diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-05-14 16:55:41 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-05-15 10:01:43 +0200 |
commit | da154e14f69e909a71ab0479c02dd56158f66ee0 (patch) | |
tree | 942675feba74c0ec16d60566fa32458c305daa2e /cpukit/libcsupport/src/sup_fs_location.c | |
parent | Filesystem: Add const qualifier to lock/unlock (diff) | |
download | rtems-da154e14f69e909a71ab0479c02dd56158f66ee0.tar.bz2 |
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.
Diffstat (limited to 'cpukit/libcsupport/src/sup_fs_location.c')
-rw-r--r-- | cpukit/libcsupport/src/sup_fs_location.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cpukit/libcsupport/src/sup_fs_location.c b/cpukit/libcsupport/src/sup_fs_location.c index 5234c01ddc..4ebf5f04d7 100644 --- a/cpukit/libcsupport/src/sup_fs_location.c +++ b/cpukit/libcsupport/src/sup_fs_location.c @@ -33,7 +33,6 @@ rtems_filesystem_location_info_t *rtems_filesystem_location_copy( dst->node_access = src->node_access; dst->node_access_2 = src->node_access_2; dst->handlers = src->handlers; - dst->ops = src->ops; dst->mt_entry = src->mt_entry; rtems_filesystem_location_add_to_mt_entry(dst); @@ -213,6 +212,6 @@ void rtems_filesystem_do_unmount( rtems_chain_extract_unprotected(&mt_entry->mt_node); rtems_filesystem_mt_unlock(); rtems_filesystem_global_location_release(mt_entry->mt_point_node); - (*mt_entry->mt_fs_root->location.ops->fsunmount_me_h)(mt_entry); + (*mt_entry->ops->fsunmount_me_h)(mt_entry); free(mt_entry); } |