Lines Matching refs:MSDOS_SB
80 down(&(MSDOS_SB(sb)->fat_lock)); in lock_fat()
85 up(&(MSDOS_SB(sb)->fat_lock)); in unlock_fat()
95 bh = fat_bread(sb, MSDOS_SB(sb)->fsinfo_sector); in fat_clusters_flush()
107 MSDOS_SB(sb)->fsinfo_sector); in fat_clusters_flush()
110 fsinfo->free_clusters = CF_LE_L(MSDOS_SB(sb)->free_clusters); in fat_clusters_flush()
111 fsinfo->next_cluster = CF_LE_L(MSDOS_SB(sb)->prev_free); in fat_clusters_flush()
124 int cluster_size = MSDOS_SB(sb)->cluster_size; in fat_add_cluster()
129 if (MSDOS_SB(sb)->free_clusters == 0) { in fat_add_cluster()
133 limit = MSDOS_SB(sb)->clusters; in fat_add_cluster()
136 nr = ((count + MSDOS_SB(sb)->prev_free) % limit) + 2; in fat_add_cluster()
141 MSDOS_SB(sb)->free_clusters = 0; in fat_add_cluster()
146 MSDOS_SB(sb)->prev_free = (count + MSDOS_SB(sb)->prev_free + 1) % limit; in fat_add_cluster()
148 if (MSDOS_SB(sb)->free_clusters != -1) in fat_add_cluster()
149 MSDOS_SB(sb)->free_clusters--; in fat_add_cluster()
150 if (MSDOS_SB(sb)->fat_bits == 32) in fat_add_cluster()
192 inode->i_blocks += (1 << MSDOS_SB(sb)->cluster_bits) / 512; in fat_add_cluster()
202 int cluster_size = MSDOS_SB(sb)->cluster_size; in fat_extend_dir()
204 if (MSDOS_SB(sb)->fat_bits != 32) { in fat_extend_dir()
213 sector = MSDOS_SB(sb)->data_start + (nr - 2) * cluster_size; in fat_extend_dir()
215 if (MSDOS_SB(sb)->cvf_format && MSDOS_SB(sb)->cvf_format->zero_out_cluster) in fat_extend_dir()
216 MSDOS_SB(sb)->cvf_format->zero_out_cluster(inode, nr); in fat_extend_dir()
240 inode->i_size += 1 << MSDOS_SB(sb)->cluster_bits; in fat_extend_dir()
241 MSDOS_I(inode)->mmu_private += 1 << MSDOS_SB(sb)->cluster_bits; in fat_extend_dir()
322 struct msdos_sb_info *sbi = MSDOS_SB(sb); in fat__get_entry()
409 struct msdos_sb_info *sbi = MSDOS_SB(sb); in raw_scan_sector()
463 count < MSDOS_SB(sb)->dir_entries / MSDOS_SB(sb)->dir_per_block; in raw_scan_root()
465 cluster = raw_scan_sector(sb, MSDOS_SB(sb)->dir_start + count, in raw_scan_root()
484 struct msdos_sb_info *sbi = MSDOS_SB(sb); in raw_scan_nonroot()
535 struct msdos_sb_info *sbi = MSDOS_SB(dir->i_sb); in fat_subdirs()