| .. | .. |
|---|
| 42 | 42 | #define ES_2_ENTRIES 2 |
|---|
| 43 | 43 | #define ES_ALL_ENTRIES 0 |
|---|
| 44 | 44 | |
|---|
| 45 | | -#define DIR_DELETED 0xFFFF0321 |
|---|
| 45 | +#define DIR_DELETED 0xFFFFFFF7 |
|---|
| 46 | 46 | |
|---|
| 47 | 47 | /* type values */ |
|---|
| 48 | 48 | #define TYPE_UNUSED 0x0000 |
|---|
| .. | .. |
|---|
| 170 | 170 | bool modified; |
|---|
| 171 | 171 | unsigned int start_off; |
|---|
| 172 | 172 | int num_bh; |
|---|
| 173 | | - struct buffer_head *bh[DIR_CACHE_SIZE]; |
|---|
| 173 | + struct buffer_head *__bh[DIR_CACHE_SIZE]; |
|---|
| 174 | + struct buffer_head **bh; |
|---|
| 174 | 175 | unsigned int num_entries; |
|---|
| 175 | 176 | }; |
|---|
| 177 | + |
|---|
| 178 | +#define IS_DYNAMIC_ES(es) ((es)->__bh != (es)->bh) |
|---|
| 176 | 179 | |
|---|
| 177 | 180 | struct exfat_dir_entry { |
|---|
| 178 | 181 | struct exfat_chain dir; |
|---|
| .. | .. |
|---|
| 458 | 461 | int exfat_calc_num_entries(struct exfat_uni_name *p_uniname); |
|---|
| 459 | 462 | int exfat_find_dir_entry(struct super_block *sb, struct exfat_inode_info *ei, |
|---|
| 460 | 463 | struct exfat_chain *p_dir, struct exfat_uni_name *p_uniname, |
|---|
| 461 | | - int num_entries, unsigned int type); |
|---|
| 464 | + int num_entries, unsigned int type, struct exfat_hint *hint_opt); |
|---|
| 462 | 465 | int exfat_alloc_new_dir(struct inode *inode, struct exfat_chain *clu); |
|---|
| 463 | 466 | int exfat_find_location(struct super_block *sb, struct exfat_chain *p_dir, |
|---|
| 464 | 467 | int entry, sector_t *sector, int *offset); |
|---|