Changeset e03d545 in mainline
- Timestamp:
- 2011-09-05T19:41:25Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5987f917, 9dbf5587
- Parents:
- 5222e746
- Location:
- uspace/srv/fs/minixfs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/minixfs/mfs.h
r5222e746 re03d545 159 159 160 160 extern int 161 mfs_put_inode (struct mfs_node *mnode);161 mfs_put_inode_core(struct mfs_node *mnode); 162 162 163 163 extern int -
uspace/srv/fs/minixfs/mfs_inode.c
r5222e746 re03d545 186 186 187 187 int 188 mfs_put_inode (struct mfs_node *mnode)188 mfs_put_inode_core(struct mfs_node *mnode) 189 189 { 190 190 int rc = EOK; -
uspace/srv/fs/minixfs/mfs_ops.c
r5222e746 re03d545 191 191 192 192 /* Read the superblock */ 193 rc = block_read_direct(service_id, MFS_SUPERBLOCK << 1, 1, sb);193 rc = block_read_direct(service_id, MFS_SUPERBLOCK << 1, 2, sb); 194 194 if (rc != EOK) { 195 195 free(instance); … … 513 513 assert(mnode->instance->open_nodes_cnt > 0); 514 514 mnode->instance->open_nodes_cnt--; 515 rc = mfs_put_inode (mnode);515 rc = mfs_put_inode_core(mnode); 516 516 free(mnode->ino_i); 517 517 free(mnode); … … 961 961 962 962 /*Destroy the inode*/ 963 r = mfs_destroy_node(fn); 964 return r; 963 return mfs_destroy_node(fn); 965 964 } 966 965 … … 979 978 980 979 assert(!has_children); 981 982 if (mnode->ino_i->i_nlinks > 0) {983 mfsdebug("nlinks = %d", mnode->ino_i->i_nlinks);984 r = EOK;985 goto out;986 }987 980 988 981 /*Free the entire inode content*/ … … 990 983 if (r != EOK) 991 984 goto out; 985 986 /*Mark the inode as free in the bitmap*/ 992 987 r = mfs_free_inode(mnode->instance, mnode->ino_i->index); 993 988
Note:
See TracChangeset
for help on using the changeset viewer.