Skip to content

in ramfs_vector.c redundant '/' skipping #5

@steverpalmer

Description

@steverpalmer

The function ramfs_get_parent near the top skips leading '/' characters (around line 174 of ramfs_vector.c).

ramfs_get_parent is called from:

  • ramfs_get_entry
  • ramfs_create
  • ramfs_rename (twice)
  • ramfs_mkdir

In each call, the pathname is pre-processed to skip leading '/' characters. The only effect of this is the loss of a few clock cycles, but perhaps the code would be simpler if the functionality was kept in ramfs_get_parent and removed elsewhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions