Lines Matching refs:sbi

55 	struct hfs_sb_info *sbi;  in flush_mdb()  local
58 sbi = container_of(work, struct hfs_sb_info, mdb_work.work); in flush_mdb()
59 sb = sbi->sb; in flush_mdb()
61 spin_lock(&sbi->work_lock); in flush_mdb()
62 sbi->work_queued = 0; in flush_mdb()
63 spin_unlock(&sbi->work_lock); in flush_mdb()
70 struct hfs_sb_info *sbi = HFS_SB(sb); in hfs_mark_mdb_dirty() local
76 spin_lock(&sbi->work_lock); in hfs_mark_mdb_dirty()
77 if (!sbi->work_queued) { in hfs_mark_mdb_dirty()
79 queue_delayed_work(system_long_wq, &sbi->mdb_work, delay); in hfs_mark_mdb_dirty()
80 sbi->work_queued = 1; in hfs_mark_mdb_dirty()
82 spin_unlock(&sbi->work_lock); in hfs_mark_mdb_dirty()
135 struct hfs_sb_info *sbi = HFS_SB(root->d_sb); in hfs_show_options() local
137 if (sbi->s_creator != cpu_to_be32(0x3f3f3f3f)) in hfs_show_options()
138 seq_show_option_n(seq, "creator", (char *)&sbi->s_creator, 4); in hfs_show_options()
139 if (sbi->s_type != cpu_to_be32(0x3f3f3f3f)) in hfs_show_options()
140 seq_show_option_n(seq, "type", (char *)&sbi->s_type, 4); in hfs_show_options()
142 from_kuid_munged(&init_user_ns, sbi->s_uid), in hfs_show_options()
143 from_kgid_munged(&init_user_ns, sbi->s_gid)); in hfs_show_options()
144 if (sbi->s_file_umask != 0133) in hfs_show_options()
145 seq_printf(seq, ",file_umask=%o", sbi->s_file_umask); in hfs_show_options()
146 if (sbi->s_dir_umask != 0022) in hfs_show_options()
147 seq_printf(seq, ",dir_umask=%o", sbi->s_dir_umask); in hfs_show_options()
148 if (sbi->part >= 0) in hfs_show_options()
149 seq_printf(seq, ",part=%u", sbi->part); in hfs_show_options()
150 if (sbi->session >= 0) in hfs_show_options()
151 seq_printf(seq, ",session=%u", sbi->session); in hfs_show_options()
152 if (sbi->nls_disk) in hfs_show_options()
153 seq_printf(seq, ",codepage=%s", sbi->nls_disk->charset); in hfs_show_options()
154 if (sbi->nls_io) in hfs_show_options()
155 seq_printf(seq, ",iocharset=%s", sbi->nls_io->charset); in hfs_show_options()
156 if (sbi->s_quiet) in hfs_show_options()
386 struct hfs_sb_info *sbi; in hfs_fill_super() local
392 sbi = kzalloc(sizeof(struct hfs_sb_info), GFP_KERNEL); in hfs_fill_super()
393 if (!sbi) in hfs_fill_super()
396 sbi->sb = sb; in hfs_fill_super()
397 sb->s_fs_info = sbi; in hfs_fill_super()
398 spin_lock_init(&sbi->work_lock); in hfs_fill_super()
399 INIT_DELAYED_WORK(&sbi->mdb_work, flush_mdb); in hfs_fill_super()
402 if (!parse_options((char *)data, sbi)) { in hfs_fill_super()
409 mutex_init(&sbi->bitmap_lock); in hfs_fill_super()