Changeset b7fd2a0 in mainline for uspace/srv/fs/mfs/mfs_inode.c
- Timestamp:
- 2018-01-13T03:10:29Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/mfs/mfs_inode.c
r36f0738 rb7fd2a0 34 34 #include "mfs.h" 35 35 36 static int36 static errno_t 37 37 mfs_write_inode_raw(struct mfs_node *mnode); 38 38 39 static int39 static errno_t 40 40 mfs2_write_inode_raw(struct mfs_node *mnode); 41 41 42 static int42 static errno_t 43 43 mfs_read_inode_raw(const struct mfs_instance *instance, 44 44 struct mfs_ino_info **ino_ptr, uint16_t inum); 45 45 46 static int46 static errno_t 47 47 mfs2_read_inode_raw(const struct mfs_instance *instance, 48 48 struct mfs_ino_info **ino_ptr, uint32_t inum); … … 57 57 * @return EOK on success or an error code. 58 58 */ 59 int59 errno_t 60 60 mfs_get_inode(struct mfs_instance *inst, struct mfs_ino_info **ino_i, 61 61 fs_index_t index) 62 62 { 63 63 struct mfs_sb_info *sbi = inst->sbi; 64 int r;64 errno_t r; 65 65 66 66 if (sbi->fs_version == MFS_VERSION_V1) { … … 75 75 } 76 76 77 static int77 static errno_t 78 78 mfs_read_inode_raw(const struct mfs_instance *instance, 79 79 struct mfs_ino_info **ino_ptr, uint16_t inum) … … 84 84 block_t *b; 85 85 int i; 86 int r;86 errno_t r; 87 87 88 88 sbi = instance->sbi; … … 135 135 } 136 136 137 static int137 static errno_t 138 138 mfs2_read_inode_raw(const struct mfs_instance *instance, 139 139 struct mfs_ino_info **ino_ptr, uint32_t inum) … … 144 144 block_t *b; 145 145 int i; 146 int r;146 errno_t r; 147 147 148 148 ino_i = malloc(sizeof(*ino_i)); … … 203 203 * @return EOK on success or an error code. 204 204 */ 205 int205 errno_t 206 206 mfs_put_inode(struct mfs_node *mnode) 207 207 { 208 int rc = EOK;208 errno_t rc = EOK; 209 209 210 210 if (!mnode->ino_i->dirty) … … 223 223 } 224 224 225 static int225 static errno_t 226 226 mfs_write_inode_raw(struct mfs_node *mnode) 227 227 { 228 228 int i; 229 int r;229 errno_t r; 230 230 block_t *b; 231 231 struct mfs_ino_info *ino_i = mnode->ino_i; … … 267 267 } 268 268 269 static int269 static errno_t 270 270 mfs2_write_inode_raw(struct mfs_node *mnode) 271 271 { … … 274 274 block_t *b; 275 275 int i; 276 int r;276 errno_t r; 277 277 278 278 const uint32_t inum = ino_i->index - 1; … … 321 321 * @return EOK on success or an error code. 322 322 */ 323 int323 errno_t 324 324 mfs_inode_shrink(struct mfs_node *mnode, size_t size_shrink) 325 325 { … … 327 327 struct mfs_ino_info *ino_i = mnode->ino_i; 328 328 const size_t bs = sbi->block_size; 329 int r;329 errno_t r; 330 330 331 331 if (size_shrink == 0) {
Note:
See TracChangeset
for help on using the changeset viewer.