Changeset e950803 in mainline for uspace/lib


Ignore:
Timestamp:
2011-02-03T20:20:01Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bfe43d5a
Parents:
bd81386 (diff), b366a1bc (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from lp:~jakub/helenos/fs.

Location:
uspace/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/block/libblock.c

    rbd81386 re950803  
    294294
    295295        /* Allow 1:1 or small-to-large block size translation */
    296         if (cache->lblock_size % devcon->pblock_size != 0)
     296        if (cache->lblock_size % devcon->pblock_size != 0) {
     297                free(cache);
    297298                return ENOTSUP;
     299        }
    298300
    299301        cache->blocks_cluster = cache->lblock_size / devcon->pblock_size;
     
    436438                        if (!b->data) {
    437439                                free(b);
     440                                b = NULL;
    438441                                goto recycle;
    439442                        }
     
    563566        assert(devcon);
    564567        assert(devcon->cache);
     568        assert(block->refcnt >= 1);
    565569
    566570        cache = devcon->cache;
     
    622626                        unsigned long key = block->lba;
    623627                        hash_table_remove(&cache->block_hash, &key, 1);
     628                        free(block->data);
    624629                        free(block);
    625                         free(block->data);
    626630                        cache->blocks_cached--;
    627631                        fibril_mutex_unlock(&cache->lock);
  • uspace/lib/c/generic/async.c

    rbd81386 re950803  
    294294}
    295295
    296 /** Connection hash table removal callback function.
    297  *
    298  * This function is called whenever a connection is removed from the connection
    299  * hash table.
    300  *
    301  * @param item Connection hash table item being removed.
    302  *
    303  */
    304296static void conn_remove(link_t *item)
    305297{
    306         free(hash_table_get_instance(item, connection_t, link));
    307298}
    308299
     
    647638                ipc_answer_0(FIBRIL_connection->close_callid, EOK);
    648639       
     640        free(FIBRIL_connection);
    649641        return 0;
    650642}
Note: See TracChangeset for help on using the changeset viewer.