Lines Matching refs:sbi
34 struct autofs_sb_info *sbi, mode_t mode) in autofs4_init_ino() argument
61 ino->sbi = sbi; in autofs4_init_ino()
104 static void autofs4_force_release(struct autofs_sb_info *sbi) in autofs4_force_release() argument
106 struct dentry *this_parent = sbi->sb->s_root; in autofs4_force_release()
109 if (!sbi->sb->s_root) in autofs4_force_release()
140 if (this_parent != sbi->sb->s_root) { in autofs4_force_release()
157 struct autofs_sb_info *sbi = autofs4_sbi(sb); in autofs4_kill_sb() local
165 if (!sbi) in autofs4_kill_sb()
169 autofs4_catatonic_mode(sbi); in autofs4_kill_sb()
172 autofs4_force_release(sbi); in autofs4_kill_sb()
175 kfree(sbi); in autofs4_kill_sb()
184 struct autofs_sb_info *sbi = autofs4_sbi(mnt->mnt_sb); in autofs4_show_options() local
187 if (!sbi) in autofs4_show_options()
190 seq_printf(m, ",fd=%d", sbi->pipefd); in autofs4_show_options()
195 seq_printf(m, ",pgrp=%d", sbi->oz_pgrp); in autofs4_show_options()
196 seq_printf(m, ",timeout=%lu", sbi->exp_timeout/HZ); in autofs4_show_options()
197 seq_printf(m, ",minproto=%d", sbi->min_proto); in autofs4_show_options()
198 seq_printf(m, ",maxproto=%d", sbi->max_proto); in autofs4_show_options()
200 if (autofs_type_offset(sbi->type)) in autofs4_show_options()
202 else if (autofs_type_direct(sbi->type)) in autofs4_show_options()
302 static struct autofs_info *autofs4_mkroot(struct autofs_sb_info *sbi) in autofs4_mkroot() argument
306 ino = autofs4_init_ino(NULL, sbi, S_IFDIR | 0755); in autofs4_mkroot()
323 struct autofs_sb_info *sbi; in autofs4_fill_super() local
326 sbi = kzalloc(sizeof(*sbi), GFP_KERNEL); in autofs4_fill_super()
327 if (!sbi) in autofs4_fill_super()
329 DPRINTK("starting up, sbi = %p",sbi); in autofs4_fill_super()
331 s->s_fs_info = sbi; in autofs4_fill_super()
332 sbi->magic = AUTOFS_SBI_MAGIC; in autofs4_fill_super()
333 sbi->pipefd = -1; in autofs4_fill_super()
334 sbi->pipe = NULL; in autofs4_fill_super()
335 sbi->catatonic = 1; in autofs4_fill_super()
336 sbi->exp_timeout = 0; in autofs4_fill_super()
337 sbi->oz_pgrp = task_pgrp_nr(current); in autofs4_fill_super()
338 sbi->sb = s; in autofs4_fill_super()
339 sbi->version = 0; in autofs4_fill_super()
340 sbi->sub_version = 0; in autofs4_fill_super()
341 set_autofs_type_indirect(&sbi->type); in autofs4_fill_super()
342 sbi->min_proto = 0; in autofs4_fill_super()
343 sbi->max_proto = 0; in autofs4_fill_super()
344 mutex_init(&sbi->wq_mutex); in autofs4_fill_super()
345 spin_lock_init(&sbi->fs_lock); in autofs4_fill_super()
346 sbi->queues = NULL; in autofs4_fill_super()
347 spin_lock_init(&sbi->lookup_lock); in autofs4_fill_super()
348 INIT_LIST_HEAD(&sbi->active_list); in autofs4_fill_super()
349 INIT_LIST_HEAD(&sbi->expiring_list); in autofs4_fill_super()
359 ino = autofs4_mkroot(sbi); in autofs4_fill_super()
376 &sbi->oz_pgrp, &sbi->type, &sbi->min_proto, in autofs4_fill_super()
377 &sbi->max_proto)) { in autofs4_fill_super()
383 root_inode->i_op = autofs_type_trigger(sbi->type) ? in autofs4_fill_super()
388 if (sbi->max_proto < AUTOFS_MIN_PROTO_VERSION || in autofs4_fill_super()
389 sbi->min_proto > AUTOFS_MAX_PROTO_VERSION) { in autofs4_fill_super()
392 sbi->min_proto, sbi->max_proto, in autofs4_fill_super()
398 if (sbi->max_proto > AUTOFS_MAX_PROTO_VERSION) in autofs4_fill_super()
399 sbi->version = AUTOFS_MAX_PROTO_VERSION; in autofs4_fill_super()
401 sbi->version = sbi->max_proto; in autofs4_fill_super()
402 sbi->sub_version = AUTOFS_PROTO_SUBVERSION; in autofs4_fill_super()
404 DPRINTK("pipe fd = %d, pgrp = %u", pipefd, sbi->oz_pgrp); in autofs4_fill_super()
413 sbi->pipe = pipe; in autofs4_fill_super()
414 sbi->pipefd = pipefd; in autofs4_fill_super()
415 sbi->catatonic = 0; in autofs4_fill_super()
439 kfree(sbi); in autofs4_fill_super()