VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   35 Branches   59 Tags
author: Carmeli Tamir <carmeli.tamir@gmail.com> 2019-01-03 15:28:00 -0800 committer: Linus Torvalds <torvalds@linux-foundation.org> 2019-01-04 13:13:47 -0800 commit: 306790f75ac2fe021a900395255e468807002c42 parent: d19dc016187502dda6b8095e44eb46a18e89b2b3
Commit Summary:
fat: new inline functions to determine the FAT variant (32, 16 or 12)
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/fat/cache.c b/fs/fat/cache.c
index 78d501c1fb65..738e427e2d21 100644
--- a/fs/fat/cache.c
+++ b/fs/fat/cache.c
@@ -363,7 +363,7 @@ int fat_bmap(struct inode *inode, sector_t sector, sector_t *phys,
 
 	*phys = 0;
 	*mapped_blocks = 0;
-	if ((sbi->fat_bits != 32) && (inode->i_ino == MSDOS_ROOT_INO)) {
+	if (!is_fat32(sbi) && (inode->i_ino == MSDOS_ROOT_INO)) {
 		if (sector < (sbi->dir_entries >> sbi->dir_per_block_bits)) {
 			*phys = sector + sbi->dir_start;
 			*mapped_blocks = 1;