Lines Matching refs:sbi

86 	struct reiserfs_sb_info *sbi;  in flush_old_commits()  local
89 sbi = container_of(work, struct reiserfs_sb_info, old_work.work); in flush_old_commits()
90 s = sbi->s_journal->j_work_sb; in flush_old_commits()
92 spin_lock(&sbi->old_work_lock); in flush_old_commits()
93 sbi->work_queued = 0; in flush_old_commits()
94 spin_unlock(&sbi->old_work_lock); in flush_old_commits()
101 struct reiserfs_sb_info *sbi = REISERFS_SB(s); in reiserfs_schedule_old_flush() local
111 spin_lock(&sbi->old_work_lock); in reiserfs_schedule_old_flush()
112 if (!sbi->work_queued) { in reiserfs_schedule_old_flush()
114 queue_delayed_work(system_long_wq, &sbi->old_work, delay); in reiserfs_schedule_old_flush()
115 sbi->work_queued = 1; in reiserfs_schedule_old_flush()
117 spin_unlock(&sbi->old_work_lock); in reiserfs_schedule_old_flush()
122 struct reiserfs_sb_info *sbi = REISERFS_SB(s); in cancel_old_flush() local
125 spin_lock(&sbi->old_work_lock); in cancel_old_flush()
126 sbi->work_queued = 0; in cancel_old_flush()
127 spin_unlock(&sbi->old_work_lock); in cancel_old_flush()
1858 struct reiserfs_sb_info *sbi; in reiserfs_fill_super() local
1865 sbi = kzalloc(sizeof(struct reiserfs_sb_info), GFP_KERNEL); in reiserfs_fill_super()
1866 if (!sbi) in reiserfs_fill_super()
1868 s->s_fs_info = sbi; in reiserfs_fill_super()
1870 sbi->s_mount_opt |= (1 << REISERFS_SMALLTAIL); in reiserfs_fill_super()
1871 sbi->s_mount_opt |= (1 << REISERFS_ERROR_RO); in reiserfs_fill_super()
1872 sbi->s_mount_opt |= (1 << REISERFS_BARRIER_FLUSH); in reiserfs_fill_super()
1874 sbi->s_alloc_options.preallocmin = 0; in reiserfs_fill_super()
1876 sbi->s_alloc_options.preallocsize = 17; in reiserfs_fill_super()
1880 spin_lock_init(&sbi->old_work_lock); in reiserfs_fill_super()
1881 INIT_DELAYED_WORK(&sbi->old_work, flush_old_commits); in reiserfs_fill_super()
1882 mutex_init(&sbi->lock); in reiserfs_fill_super()
1883 sbi->lock_depth = -1; in reiserfs_fill_super()
1885 sbi->commit_wq = alloc_workqueue("reiserfs/%s", WQ_MEM_RECLAIM, 0, in reiserfs_fill_super()
1887 if (!sbi->commit_wq) { in reiserfs_fill_super()
1895 (s, (char *)data, &sbi->s_mount_opt, &blocks, &jdev_name, in reiserfs_fill_super()
1900 sbi->s_jdev = kstrdup(jdev_name, GFP_KERNEL); in reiserfs_fill_super()
1901 if (!sbi->s_jdev) { in reiserfs_fill_super()
1951 sbi->s_mount_state = SB_REISERFS_STATE(s); in reiserfs_fill_super()
1952 sbi->s_mount_state = REISERFS_VALID_FS; in reiserfs_fill_super()
1968 sbi->s_mount_opt |= (1 << REISERFS_DATA_ORDERED); in reiserfs_fill_super()
2037 sbi->s_hash_function = hash_function(s); in reiserfs_fill_super()
2038 if (sbi->s_hash_function == NULL) { in reiserfs_fill_super()
2046 set_bit(REISERFS_3_5, &sbi->s_properties); in reiserfs_fill_super()
2048 set_bit(REISERFS_OLD_FORMAT, &sbi->s_properties); in reiserfs_fill_super()
2050 set_bit(REISERFS_3_6, &sbi->s_properties); in reiserfs_fill_super()
2106 set_bit(REISERFS_3_6, &sbi->s_properties); in reiserfs_fill_super()
2107 clear_bit(REISERFS_3_5, &sbi->s_properties); in reiserfs_fill_super()
2153 set_sb_hash_function_code(rs, function2code(sbi->s_hash_function)); in reiserfs_fill_super()
2159 init_waitqueue_head(&(sbi->s_wait)); in reiserfs_fill_super()
2160 spin_lock_init(&sbi->bitmap_lock); in reiserfs_fill_super()
2177 if (sbi->commit_wq) in reiserfs_fill_super()
2178 destroy_workqueue(sbi->commit_wq); in reiserfs_fill_super()
2192 kfree(sbi); in reiserfs_fill_super()