Changeset 10 for trunk/kernel/vfs/vfs.c


Ignore:
Timestamp:
Apr 26, 2017, 2:24:47 PM (5 years ago)
Author:
alain
Message:

Merge all FS related files in one single directory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/vfs/vfs.c

    r1 r10  
    177177
    178178    // initialize inode locks
    179     remote_rwlock_init( XPTR( local_cxy , &inode->size_lock ) );
     179    remote_rwlock_init( XPTR( local_cxy , &inode->data_lock ) );
    180180    remote_spinlock_init( XPTR( local_cxy , &inode->main_lock ) );
    181181
     
    238238
    239239    // get size
    240     remote_rwlock_rd_lock( XPTR( cxy , &ptr->size_lock ) );
     240    remote_rwlock_rd_lock( XPTR( cxy , &ptr->data_lock ) );
    241241    uint32_t size = hal_remote_lw( XPTR( cxy , &ptr->size ) );
    242     remote_rwlock_rd_unlock( XPTR( cxy , &ptr->size_lock ) );
     242    remote_rwlock_rd_unlock( XPTR( cxy , &ptr->data_lock ) );
    243243    return size;
    244244}
     
    253253
    254254    // set size
    255     remote_rwlock_wr_unlock( XPTR( cxy , &ptr->size_lock ) );
     255    remote_rwlock_wr_unlock( XPTR( cxy , &ptr->data_lock ) );
    256256    hal_remote_sw( XPTR( cxy , &ptr->size ) , size );
    257     remote_rwlock_wr_unlock( XPTR( cxy , &ptr->size_lock ) );
     257    remote_rwlock_wr_unlock( XPTR( cxy , &ptr->data_lock ) );
    258258}
    259259
Note: See TracChangeset for help on using the changeset viewer.