Changes in uspace/lib/fs/libfs.c [fbcdeb8:5bf76c1] in mainline


Ignore:
File:
1 edited

Legend:

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

    rfbcdeb8 r5bf76c1  
    336336       
    337337        /*
    338          * Request sharing the Path Lookup Buffer with VFS.
    339          */
    340         rc = async_share_in_start_0_0(exch, PLB_SIZE, (void *) &reg.plb_ro);
    341         if (reg.plb_ro == (void *) -1) {
     338         * Allocate piece of address space for PLB.
     339         */
     340        reg.plb_ro = as_get_mappable_page(PLB_SIZE);
     341        if (!reg.plb_ro) {
    342342                async_exchange_end(exch);
    343343                async_wait_for(req, NULL);
    344344                return ENOMEM;
    345345        }
     346       
     347        /*
     348         * Request sharing the Path Lookup Buffer with VFS.
     349         */
     350        rc = async_share_in_start_0_0(exch, reg.plb_ro, PLB_SIZE);
    346351       
    347352        async_exchange_end(exch);
Note: See TracChangeset for help on using the changeset viewer.