Changeset b191acae in mainline for uspace/lib/ext4/libext4_directory_index.c
- Timestamp:
- 2012-03-18T15:54:09Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cd581120
- Parents:
- 96598b8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ext4/libext4_directory_index.c
r96598b8 rb191acae 43 43 #include "libext4.h" 44 44 45 typedef struct ext4_dx_sort_entry { 46 uint32_t hash; 47 uint32_t rec_len; 48 void *dentry; 49 } ext4_dx_sort_entry_t; 50 45 51 46 52 uint8_t ext4_directory_dx_root_info_get_hash_version( … … 412 418 } 413 419 414 typedef struct ext4_dx_sort_entry { 415 uint32_t hash; 416 uint32_t rec_len; 417 void *dentry; 418 } ext4_dx_sort_entry_t; 419 420 static int dx_entry_comparator(void *arg1, void *arg2, void *dummy) 420 static int ext4_directory_dx_entry_comparator(void *arg1, void *arg2, void *dummy) 421 421 { 422 422 ext4_dx_sort_entry_t *entry1 = arg1; … … 519 519 } 520 520 521 qsort(sort_array, idx, sizeof(ext4_dx_sort_entry_t), dx_entry_comparator, NULL);521 qsort(sort_array, idx, sizeof(ext4_dx_sort_entry_t), ext4_directory_dx_entry_comparator, NULL); 522 522 523 523 uint32_t new_fblock;
Note:
See TracChangeset
for help on using the changeset viewer.