diff options
Diffstat (limited to 'fs/hfsplus/hfsplus_fs.h')
-rw-r--r-- | fs/hfsplus/hfsplus_fs.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/fs/hfsplus/hfsplus_fs.h b/fs/hfsplus/hfsplus_fs.h index 0fa1ab6250bf..4608171f45d3 100644 --- a/fs/hfsplus/hfsplus_fs.h +++ b/fs/hfsplus/hfsplus_fs.h | |||
@@ -36,7 +36,7 @@ | |||
36 | #define HFSPLUS_TYPE_DATA 0x00 | 36 | #define HFSPLUS_TYPE_DATA 0x00 |
37 | #define HFSPLUS_TYPE_RSRC 0xFF | 37 | #define HFSPLUS_TYPE_RSRC 0xFF |
38 | 38 | ||
39 | typedef int (*btree_keycmp)(hfsplus_btree_key *, hfsplus_btree_key *); | 39 | typedef int (*btree_keycmp)(const hfsplus_btree_key *, const hfsplus_btree_key *); |
40 | 40 | ||
41 | #define NODE_HASH_SIZE 256 | 41 | #define NODE_HASH_SIZE 256 |
42 | 42 | ||
@@ -149,6 +149,7 @@ struct hfsplus_sb_info { | |||
149 | #define HFSPLUS_SB_WRITEBACKUP 0x0001 | 149 | #define HFSPLUS_SB_WRITEBACKUP 0x0001 |
150 | #define HFSPLUS_SB_NODECOMPOSE 0x0002 | 150 | #define HFSPLUS_SB_NODECOMPOSE 0x0002 |
151 | #define HFSPLUS_SB_FORCE 0x0004 | 151 | #define HFSPLUS_SB_FORCE 0x0004 |
152 | #define HFSPLUS_SB_HFSX 0x0008 | ||
152 | 153 | ||
153 | 154 | ||
154 | struct hfsplus_inode_info { | 155 | struct hfsplus_inode_info { |
@@ -303,7 +304,8 @@ int hfs_brec_read(struct hfs_find_data *, void *, int); | |||
303 | int hfs_brec_goto(struct hfs_find_data *, int); | 304 | int hfs_brec_goto(struct hfs_find_data *, int); |
304 | 305 | ||
305 | /* catalog.c */ | 306 | /* catalog.c */ |
306 | int hfsplus_cat_cmp_key(hfsplus_btree_key *, hfsplus_btree_key *); | 307 | int hfsplus_cat_case_cmp_key(const hfsplus_btree_key *, const hfsplus_btree_key *); |
308 | int hfsplus_cat_bin_cmp_key(const hfsplus_btree_key *, const hfsplus_btree_key *); | ||
307 | void hfsplus_cat_build_key(struct super_block *sb, hfsplus_btree_key *, u32, struct qstr *); | 309 | void hfsplus_cat_build_key(struct super_block *sb, hfsplus_btree_key *, u32, struct qstr *); |
308 | int hfsplus_find_cat(struct super_block *, u32, struct hfs_find_data *); | 310 | int hfsplus_find_cat(struct super_block *, u32, struct hfs_find_data *); |
309 | int hfsplus_create_cat(u32, struct inode *, struct qstr *, struct inode *); | 311 | int hfsplus_create_cat(u32, struct inode *, struct qstr *, struct inode *); |
@@ -312,7 +314,7 @@ int hfsplus_rename_cat(u32, struct inode *, struct qstr *, | |||
312 | struct inode *, struct qstr *); | 314 | struct inode *, struct qstr *); |
313 | 315 | ||
314 | /* extents.c */ | 316 | /* extents.c */ |
315 | int hfsplus_ext_cmp_key(hfsplus_btree_key *, hfsplus_btree_key *); | 317 | int hfsplus_ext_cmp_key(const hfsplus_btree_key *, const hfsplus_btree_key *); |
316 | void hfsplus_ext_write_extent(struct inode *); | 318 | void hfsplus_ext_write_extent(struct inode *); |
317 | int hfsplus_get_block(struct inode *, sector_t, struct buffer_head *, int); | 319 | int hfsplus_get_block(struct inode *, sector_t, struct buffer_head *, int); |
318 | int hfsplus_free_fork(struct super_block *, u32, struct hfsplus_fork_raw *, int); | 320 | int hfsplus_free_fork(struct super_block *, u32, struct hfsplus_fork_raw *, int); |
@@ -350,7 +352,8 @@ extern u16 hfsplus_decompose_table[]; | |||
350 | extern u16 hfsplus_compose_table[]; | 352 | extern u16 hfsplus_compose_table[]; |
351 | 353 | ||
352 | /* unicode.c */ | 354 | /* unicode.c */ |
353 | int hfsplus_unistrcmp(const struct hfsplus_unistr *, const struct hfsplus_unistr *); | 355 | int hfsplus_strcasecmp(const struct hfsplus_unistr *, const struct hfsplus_unistr *); |
356 | int hfsplus_strcmp(const struct hfsplus_unistr *, const struct hfsplus_unistr *); | ||
354 | int hfsplus_uni2asc(struct super_block *, const struct hfsplus_unistr *, char *, int *); | 357 | int hfsplus_uni2asc(struct super_block *, const struct hfsplus_unistr *, char *, int *); |
355 | int hfsplus_asc2uni(struct super_block *, struct hfsplus_unistr *, const char *, int); | 358 | int hfsplus_asc2uni(struct super_block *, struct hfsplus_unistr *, const char *, int); |
356 | 359 | ||