Changeset 81ee87cd in mainline
- Timestamp:
- 2012-04-11T18:48:28Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7eb033ce
- Parents:
- 01b0262
- Location:
- uspace/lib/ext4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ext4/libext4_block_group.c
r01b0262 r81ee87cd 169 169 } 170 170 171 void ext4_block_group_set_flags(ext4_block_group_t *bg, uint16_t flags) 172 { 173 bg->flags = host2uint16_t_le(flags); 174 } 175 171 176 uint32_t ext4_block_group_get_itable_unused(ext4_block_group_t *bg, 172 177 ext4_superblock_t *sb) … … 208 213 return false; 209 214 } 215 216 void ext4_block_group_clear_flag(ext4_block_group_t *bg, uint32_t clear_flag) 217 { 218 uint32_t flags = ext4_block_group_get_flags(bg); 219 flags = flags & (~clear_flag); 220 ext4_block_group_set_flags(bg, flags); 221 } 222 210 223 211 224 /** -
uspace/lib/ext4/libext4_block_group.h
r01b0262 r81ee87cd 74 74 75 75 extern bool ext4_block_group_has_flag(ext4_block_group_t *, uint32_t); 76 extern void ext4_block_group_clear_flag(ext4_block_group_t *, uint32_t); 77 76 78 #endif 77 79
Note:
See TracChangeset
for help on using the changeset viewer.