Ignore:
Timestamp:
May 14, 2012, 2:55:41 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
0a95800a, a7d1992c
Parents:
7666afc
git-author:
Sebastian Huber <sebastian.huber@…> (05/14/12 14:55:41)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/15/12 08:01:43)
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/include/rtems/libio_.h

    r7666afc rda154e14  
    251251)
    252252{
    253   (*loc->ops->lock_h)( loc->mt_entry );
     253  const rtems_filesystem_mount_table_entry_t *mt_entry = loc->mt_entry;
     254
     255  (*mt_entry->ops->lock_h)( mt_entry );
    254256}
    255257
     
    258260)
    259261{
    260   (*loc->ops->unlock_h)( loc->mt_entry );
     262  const rtems_filesystem_mount_table_entry_t *mt_entry = loc->mt_entry;
     263
     264  (*mt_entry->ops->unlock_h)( mt_entry );
    261265}
    262266
     
    583587)
    584588{
    585   return (*loc->ops->are_nodes_equal_h)(
     589  const rtems_filesystem_mount_table_entry_t *mt_entry = loc->mt_entry;
     590
     591  return (*mt_entry->ops->are_nodes_equal_h)(
    586592    loc,
    587     &loc->mt_entry->mt_fs_root->location
     593    &mt_entry->mt_fs_root->location
    588594  );
    589595}
Note: See TracChangeset for help on using the changeset viewer.