hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/fs/exfat/exfat_fs.h
....@@ -42,7 +42,7 @@
4242 #define ES_2_ENTRIES 2
4343 #define ES_ALL_ENTRIES 0
4444
45
-#define DIR_DELETED 0xFFFF0321
45
+#define DIR_DELETED 0xFFFFFFF7
4646
4747 /* type values */
4848 #define TYPE_UNUSED 0x0000
....@@ -170,9 +170,12 @@
170170 bool modified;
171171 unsigned int start_off;
172172 int num_bh;
173
- struct buffer_head *bh[DIR_CACHE_SIZE];
173
+ struct buffer_head *__bh[DIR_CACHE_SIZE];
174
+ struct buffer_head **bh;
174175 unsigned int num_entries;
175176 };
177
+
178
+#define IS_DYNAMIC_ES(es) ((es)->__bh != (es)->bh)
176179
177180 struct exfat_dir_entry {
178181 struct exfat_chain dir;
....@@ -458,7 +461,7 @@
458461 int exfat_calc_num_entries(struct exfat_uni_name *p_uniname);
459462 int exfat_find_dir_entry(struct super_block *sb, struct exfat_inode_info *ei,
460463 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);
462465 int exfat_alloc_new_dir(struct inode *inode, struct exfat_chain *clu);
463466 int exfat_find_location(struct super_block *sb, struct exfat_chain *p_dir,
464467 int entry, sector_t *sector, int *offset);