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/src/sup_fs_eval_path_generic.c

    r7666afc rda154e14  
    2121static bool is_fs_root( const rtems_filesystem_location_info_t *loc )
    2222{
     23  const rtems_filesystem_mount_table_entry_t *mt_entry = loc->mt_entry;
    2324  const rtems_filesystem_location_info_t *mt_fs_root =
    24     &loc->mt_entry->mt_fs_root->location;
     25    &mt_entry->mt_fs_root->location;
    2526
    26   return (*loc->ops->are_nodes_equal_h)( loc, mt_fs_root );
     27  return (*mt_entry->ops->are_nodes_equal_h)( loc, mt_fs_root );
    2728}
    2829
     
    3233)
    3334{
     35  const rtems_filesystem_mount_table_entry_t *mt_entry = loc->mt_entry;
    3436  const rtems_filesystem_location_info_t *rootloc = &ctx->rootloc->location;
    3537
    36   return loc->mt_entry == rootloc->mt_entry
    37     && (*loc->ops->are_nodes_equal_h)( loc, rootloc );
     38  return mt_entry == rootloc->mt_entry
     39    && (*mt_entry->ops->are_nodes_equal_h)( loc, rootloc );
    3840}
    3941
Note: See TracChangeset for help on using the changeset viewer.