Changeset 672 for trunk/kernel/mm/mapper.c
- Timestamp:
- Nov 19, 2020, 11:49:01 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/mm/mapper.c
r657 r672 230 230 // - it is a directory mapper 231 231 // - it is a file mapper, and it exist data on IOC device for this page 232 if( (inode == NULL) || (inode_type == INODE_TYPE_DIR) || (inode_size > (page_id << 10) ) )232 if( (inode == NULL) || (inode_type == FILE_TYPE_DIR) || (inode_size > (page_id << 10) ) ) 233 233 { 234 234 error = vfs_fs_move_page( page_xp , IOC_SYNC_READ ); … … 284 284 cxy_t mapper_cxy = GET_CXY( mapper_xp ); 285 285 286 assert( (hal_remote_lpt( XPTR( mapper_cxy , &mapper_ptr->inode ) ) != NULL ),286 assert( __FUNCTION__, (hal_remote_lpt( XPTR( mapper_cxy , &mapper_ptr->inode ) ) != NULL ), 287 287 "should not be used for the FAT mapper"); 288 288 … … 385 385 cxy_t mapper_cxy = GET_CXY( mapper_xp ); 386 386 387 assert( (hal_remote_lpt( XPTR( mapper_cxy , &mapper_ptr->inode ) ) == NULL ),387 assert( __FUNCTION__, (hal_remote_lpt( XPTR( mapper_cxy , &mapper_ptr->inode ) ) == NULL ), 388 388 "should be used for the FAT mapper"); 389 389 … … 890 890 char name[CONFIG_VFS_MAX_NAME_LENGTH]; 891 891 892 assert( (nbytes <= 4096) , "nbytes cannot be larger than 4096");893 assert( (mapper_xp != XPTR_NULL) , "mapper_xp argument cannot be null");892 assert( __FUNCTION__, (nbytes <= 4096) , "nbytes cannot be larger than 4096"); 893 assert( __FUNCTION__, (mapper_xp != XPTR_NULL) , "mapper_xp argument cannot be null"); 894 894 895 895 // get mapper cluster and local pointer … … 908 908 mapper_t * mapper = hal_remote_lpt( XPTR( page_cxy , &page_ptr->mapper ) ); 909 909 910 assert( (mapper_cxy == page_cxy ) , "mapper and page must be in same cluster");911 assert( (mapper_ptr == mapper ) , "unconsistent mapper field in page descriptor");912 assert( (page_id == index ) , "unconsistent index field in page descriptor");910 assert( __FUNCTION__, (mapper_cxy == page_cxy ) , "mapper and page must be in same cluster"); 911 assert( __FUNCTION__, (mapper_ptr == mapper ) , "unconsistent mapper field in page descriptor"); 912 assert( __FUNCTION__, (page_id == index ) , "unconsistent index field in page descriptor"); 913 913 914 914 // get inode
Note: See TracChangeset
for help on using the changeset viewer.