Changeset 103a371 in rtems


Ignore:
Timestamp:
Mar 5, 2020, 8:56:31 PM (4 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
0161b93d
Parents:
277b9dd
git-author:
Sebastian Huber <sebastian.huber@…> (03/05/20 20:56:31)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/09/20 16:15:20)
Message:

imfs: Simplify code generation

Update #3894.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/imfs/imfs_initsupp.c

    r277b9dd r103a371  
    2828)
    2929{
    30   const IMFS_mount_data *mount_data = data;
    31   IMFS_fs_info_t *fs_info = mount_data->fs_info;
    32   IMFS_jnode_t *root_node;
     30  const IMFS_mount_data   *mount_data;
     31  IMFS_fs_info_t          *fs_info;
     32  const IMFS_node_control *node_control;
     33  IMFS_jnode_t            *root_node;
    3334
     35  mount_data = data;
     36
     37  fs_info = mount_data->fs_info;
    3438  fs_info->mknod_controls = mount_data->mknod_controls;
     39  node_control = &mount_data->mknod_controls->directory->node_control;
     40  root_node = &fs_info->Root_directory.Node;
     41
     42  mt_entry->fs_info = fs_info;
     43  mt_entry->ops = mount_data->ops;
     44  mt_entry->pathconf_limits_and_options = &IMFS_LIMITS_AND_OPTIONS;
     45  mt_entry->mt_fs_root->location.node_access = root_node;
     46  mt_entry->mt_fs_root->location.handlers = node_control->handlers;
    3547
    3648  root_node = IMFS_initialize_node(
    37     &fs_info->Root_directory.Node,
    38     &fs_info->mknod_controls->directory->node_control,
     49    root_node,
     50    node_control,
    3951    "",
    4052    0,
     
    4355  );
    4456  IMFS_assert( root_node != NULL );
    45 
    46   mt_entry->fs_info = fs_info;
    47   mt_entry->ops = mount_data->ops;
    48   mt_entry->pathconf_limits_and_options = &IMFS_LIMITS_AND_OPTIONS;
    49   mt_entry->mt_fs_root->location.node_access = root_node;
    50   IMFS_Set_handlers( &mt_entry->mt_fs_root->location );
    5157
    5258  return 0;
Note: See TracChangeset for help on using the changeset viewer.