Lines Matching refs:sbi
62 struct msdos_sb_info *sbi = MSDOS_SB(sb); in fat_clusters_flush() local
66 if (sbi->fat_bits != 32) in fat_clusters_flush()
69 bh = sb_bread(sb, sbi->fsinfo_sector); in fat_clusters_flush()
82 sbi->fsinfo_sector); in fat_clusters_flush()
84 if (sbi->free_clusters != -1) in fat_clusters_flush()
85 fsinfo->free_clusters = cpu_to_le32(sbi->free_clusters); in fat_clusters_flush()
86 if (sbi->prev_free != -1) in fat_clusters_flush()
87 fsinfo->next_cluster = cpu_to_le32(sbi->prev_free); in fat_clusters_flush()
102 struct msdos_sb_info *sbi = MSDOS_SB(sb); in fat_chain_add() local
152 if (new_fclus != (inode->i_blocks >> (sbi->cluster_bits - 9))) { in fat_chain_add()
155 (llu)(inode->i_blocks >> (sbi->cluster_bits - 9))); in fat_chain_add()
158 inode->i_blocks += nr_cluster << (sbi->cluster_bits - 9); in fat_chain_add()
189 void fat_time_fat2unix(struct msdos_sb_info *sbi, struct timespec *ts, in fat_time_fat2unix() argument
212 if (!sbi->options.tz_set) in fat_time_fat2unix()
215 second -= sbi->options.time_offset * SECS_PER_MIN; in fat_time_fat2unix()
227 void fat_time_unix2fat(struct msdos_sb_info *sbi, struct timespec *ts, in fat_time_unix2fat() argument
232 (sbi->options.tz_set ? sbi->options.time_offset : in fat_time_unix2fat()