forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-09-20 a36159eec6ca17402b0e146b86efaf76568dc353
kernel/fs/fat/cache.c
....@@ -363,7 +363,7 @@
363363
364364 *phys = 0;
365365 *mapped_blocks = 0;
366
- if ((sbi->fat_bits != 32) && (inode->i_ino == MSDOS_ROOT_INO)) {
366
+ if (!is_fat32(sbi) && (inode->i_ino == MSDOS_ROOT_INO)) {
367367 if (sector < (sbi->dir_entries >> sbi->dir_per_block_bits)) {
368368 *phys = sector + sbi->dir_start;
369369 *mapped_blocks = 1;