Changeset 94b0b63 in mainline


Ignore:
Timestamp:
2008-04-02T19:45:22Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a2aa1dec
Parents:
736c164
Message:

libfs' node_get() operation does not need the file system handle.

Location:
uspace
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libfs/libfs.c

    r736c164 r94b0b63  
    197197                                        nodep = ops->create(lflag);
    198198                                else
    199                                         nodep = ops->node_get(fs_handle,
    200                                             dev_handle, index);
     199                                        nodep = ops->node_get(dev_handle,
     200                                            index);
    201201                                if (nodep) {
    202202                                        if (!ops->link(cur, nodep, component)) {
     
    261261                                nodep = ops->create(lflag);
    262262                        else
    263                                 nodep = ops->node_get(fs_handle, dev_handle,
    264                                     index);
     263                                nodep = ops->node_get(dev_handle, index);
    265264                        if (nodep) {
    266265                                if (!ops->link(cur, nodep, component)) {
  • uspace/lib/libfs/libfs.h

    r736c164 r94b0b63  
    4444typedef struct {
    4545        void * (* match)(void *, const char *);
    46         void * (* node_get)(fs_handle_t, dev_handle_t, fs_index_t);
     46        void * (* node_get)(dev_handle_t, fs_index_t);
    4747        void * (* create)(int);
    4848        void (* destroy)(void *);
  • uspace/srv/fs/tmpfs/tmpfs_ops.c

    r736c164 r94b0b63  
    7171/* Forward declarations of static functions. */
    7272static void *tmpfs_match(void *, const char *);
    73 static void *tmpfs_node_get(fs_handle_t, dev_handle_t, fs_index_t);
     73static void *tmpfs_node_get(dev_handle_t, fs_index_t);
    7474static void *tmpfs_create_node(int);
    7575static bool tmpfs_link_node(void *, void *, const char *);
     
    267267
    268268void *
    269 tmpfs_node_get(fs_handle_t fs_handle, dev_handle_t dev_handle, fs_index_t index)
     269tmpfs_node_get(dev_handle_t dev_handle, fs_index_t index)
    270270{
    271271        unsigned long key = index;
Note: See TracChangeset for help on using the changeset viewer.