Lines Matching refs:sbi

29 	struct affs_sb_info *sbi = AFFS_SB(sb);  in affs_commit_super()  local
30 struct buffer_head *bh = sbi->s_root_bh; in affs_commit_super()
46 struct affs_sb_info *sbi = AFFS_SB(sb); in affs_put_super() local
49 cancel_delayed_work_sync(&sbi->sb_work); in affs_put_super()
61 struct affs_sb_info *sbi; in flush_superblock() local
64 sbi = container_of(work, struct affs_sb_info, sb_work.work); in flush_superblock()
65 sb = sbi->sb; in flush_superblock()
67 spin_lock(&sbi->work_lock); in flush_superblock()
68 sbi->work_queued = 0; in flush_superblock()
69 spin_unlock(&sbi->work_lock); in flush_superblock()
76 struct affs_sb_info *sbi = AFFS_SB(sb); in affs_mark_sb_dirty() local
82 spin_lock(&sbi->work_lock); in affs_mark_sb_dirty()
83 if (!sbi->work_queued) { in affs_mark_sb_dirty()
85 queue_delayed_work(system_long_wq, &sbi->sb_work, delay); in affs_mark_sb_dirty()
86 sbi->work_queued = 1; in affs_mark_sb_dirty()
88 spin_unlock(&sbi->work_lock); in affs_mark_sb_dirty()
300 struct affs_sb_info *sbi; in affs_fill_super() local
325 sbi = kzalloc(sizeof(struct affs_sb_info), GFP_KERNEL); in affs_fill_super()
326 if (!sbi) in affs_fill_super()
329 sb->s_fs_info = sbi; in affs_fill_super()
330 sbi->sb = sb; in affs_fill_super()
331 mutex_init(&sbi->s_bmlock); in affs_fill_super()
332 spin_lock_init(&sbi->symlink_lock); in affs_fill_super()
333 spin_lock_init(&sbi->work_lock); in affs_fill_super()
334 INIT_DELAYED_WORK(&sbi->sb_work, flush_superblock); in affs_fill_super()
337 &blocksize,&sbi->s_prefix, in affs_fill_super()
338 sbi->s_volume, &mount_flags)) { in affs_fill_super()
344 sbi->s_flags = mount_flags; in affs_fill_super()
345 sbi->s_mode = i; in affs_fill_super()
346 sbi->s_uid = uid; in affs_fill_super()
347 sbi->s_gid = gid; in affs_fill_super()
348 sbi->s_reserved= reserved; in affs_fill_super()
368 sbi->s_root_block = root_block; in affs_fill_super()
370 sbi->s_root_block = (reserved + size - 1) / 2; in affs_fill_super()
373 sbi->s_partition_size = size; in affs_fill_super()
389 sbi->s_root_block + num_bm, in affs_fill_super()
391 root_bh = affs_bread(sb, sbi->s_root_block + num_bm); in affs_fill_super()
397 sbi->s_hashsize = blocksize / 4 - 56; in affs_fill_super()
398 sbi->s_root_block += num_bm; in affs_fill_super()
412 sbi->s_root_bh = root_bh; in affs_fill_super()
413 root_block = sbi->s_root_block; in affs_fill_super()
438 affs_set_opt(sbi->s_flags, SF_MUFS); in affs_fill_super()
442 affs_set_opt(sbi->s_flags, SF_INTL); in affs_fill_super()
445 affs_set_opt(sbi->s_flags, SF_MUFS); in affs_fill_super()
450 affs_set_opt(sbi->s_flags, SF_MUFS); in affs_fill_super()
453 affs_set_opt(sbi->s_flags, SF_OFS); in affs_fill_super()
458 affs_set_opt(sbi->s_flags, SF_MUFS); in affs_fill_super()
461 affs_set_opt(sbi->s_flags, SF_INTL); in affs_fill_super()
462 affs_set_opt(sbi->s_flags, SF_OFS); in affs_fill_super()
481 sbi->s_data_blksize = sb->s_blocksize; in affs_fill_super()
482 if (affs_test_opt(sbi->s_flags, SF_OFS)) in affs_fill_super()
483 sbi->s_data_blksize -= 24; in affs_fill_super()
515 struct affs_sb_info *sbi = AFFS_SB(sb); in affs_remount() local
537 memcpy(volume, sbi->s_volume, 32); in affs_remount()
546 flush_delayed_work(&sbi->sb_work); in affs_remount()
550 sbi->s_flags = mount_flags; in affs_remount()
551 sbi->s_mode = mode; in affs_remount()
552 sbi->s_uid = uid; in affs_remount()
553 sbi->s_gid = gid; in affs_remount()
555 spin_lock(&sbi->symlink_lock); in affs_remount()
557 kfree(sbi->s_prefix); in affs_remount()
558 sbi->s_prefix = prefix; in affs_remount()
560 memcpy(sbi->s_volume, volume, 32); in affs_remount()
561 spin_unlock(&sbi->symlink_lock); in affs_remount()
605 struct affs_sb_info *sbi = AFFS_SB(sb); in affs_kill_sb() local
607 if (sbi) { in affs_kill_sb()
609 affs_brelse(sbi->s_root_bh); in affs_kill_sb()
610 kfree(sbi->s_prefix); in affs_kill_sb()
611 mutex_destroy(&sbi->s_bmlock); in affs_kill_sb()
612 kfree(sbi); in affs_kill_sb()