hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
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;