Lines Matching refs:sbi

56 	struct hfs_sb_info *sbi;  in flush_mdb()  local
59 sbi = container_of(work, struct hfs_sb_info, mdb_work.work); in flush_mdb()
60 sb = sbi->sb; in flush_mdb()
62 spin_lock(&sbi->work_lock); in flush_mdb()
63 sbi->work_queued = 0; in flush_mdb()
64 spin_unlock(&sbi->work_lock); in flush_mdb()
71 struct hfs_sb_info *sbi = HFS_SB(sb); in hfs_mark_mdb_dirty() local
77 spin_lock(&sbi->work_lock); in hfs_mark_mdb_dirty()
78 if (!sbi->work_queued) { in hfs_mark_mdb_dirty()
80 queue_delayed_work(system_long_wq, &sbi->mdb_work, delay); in hfs_mark_mdb_dirty()
81 sbi->work_queued = 1; in hfs_mark_mdb_dirty()
83 spin_unlock(&sbi->work_lock); in hfs_mark_mdb_dirty()
136 struct hfs_sb_info *sbi = HFS_SB(root->d_sb); in hfs_show_options() local
138 if (sbi->s_creator != cpu_to_be32(0x3f3f3f3f)) in hfs_show_options()
139 seq_show_option_n(seq, "creator", (char *)&sbi->s_creator, 4); in hfs_show_options()
140 if (sbi->s_type != cpu_to_be32(0x3f3f3f3f)) in hfs_show_options()
141 seq_show_option_n(seq, "type", (char *)&sbi->s_type, 4); in hfs_show_options()
143 from_kuid_munged(&init_user_ns, sbi->s_uid), in hfs_show_options()
144 from_kgid_munged(&init_user_ns, sbi->s_gid)); in hfs_show_options()
145 if (sbi->s_file_umask != 0133) in hfs_show_options()
146 seq_printf(seq, ",file_umask=%o", sbi->s_file_umask); in hfs_show_options()
147 if (sbi->s_dir_umask != 0022) in hfs_show_options()
148 seq_printf(seq, ",dir_umask=%o", sbi->s_dir_umask); in hfs_show_options()
149 if (sbi->part >= 0) in hfs_show_options()
150 seq_printf(seq, ",part=%u", sbi->part); in hfs_show_options()
151 if (sbi->session >= 0) in hfs_show_options()
152 seq_printf(seq, ",session=%u", sbi->session); in hfs_show_options()
153 if (sbi->nls_disk) in hfs_show_options()
154 seq_printf(seq, ",codepage=%s", sbi->nls_disk->charset); in hfs_show_options()
155 if (sbi->nls_io) in hfs_show_options()
156 seq_printf(seq, ",iocharset=%s", sbi->nls_io->charset); in hfs_show_options()
157 if (sbi->s_quiet) in hfs_show_options()
387 struct hfs_sb_info *sbi; in hfs_fill_super() local
393 sbi = kzalloc(sizeof(struct hfs_sb_info), GFP_KERNEL); in hfs_fill_super()
394 if (!sbi) in hfs_fill_super()
397 sbi->sb = sb; in hfs_fill_super()
398 sb->s_fs_info = sbi; in hfs_fill_super()
399 spin_lock_init(&sbi->work_lock); in hfs_fill_super()
400 INIT_DELAYED_WORK(&sbi->mdb_work, flush_mdb); in hfs_fill_super()
403 if (!parse_options((char *)data, sbi)) { in hfs_fill_super()
410 mutex_init(&sbi->bitmap_lock); in hfs_fill_super()