Lines Matching refs:sbi
74 struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb); in autofs4_add_active() local
79 spin_lock(&sbi->lookup_lock); in autofs4_add_active()
82 list_add(&ino->active, &sbi->active_list); in autofs4_add_active()
85 spin_unlock(&sbi->lookup_lock); in autofs4_add_active()
91 struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb); in autofs4_del_active() local
96 spin_lock(&sbi->lookup_lock); in autofs4_del_active()
102 spin_unlock(&sbi->lookup_lock); in autofs4_del_active()
109 struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb); in autofs4_dir_open() local
113 if (autofs4_oz_mode(sbi)) in autofs4_dir_open()
125 spin_lock(&sbi->lookup_lock); in autofs4_dir_open()
127 spin_unlock(&sbi->lookup_lock); in autofs4_dir_open()
130 spin_unlock(&sbi->lookup_lock); in autofs4_dir_open()
139 struct autofs_sb_info *sbi = autofs4_sbi(de->d_sb); in autofs4_dentry_release() local
146 if (sbi) { in autofs4_dentry_release()
147 spin_lock(&sbi->lookup_lock); in autofs4_dentry_release()
152 spin_unlock(&sbi->lookup_lock); in autofs4_dentry_release()
160 struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb); in autofs4_lookup_active() local
168 head = &sbi->active_list; in autofs4_lookup_active()
171 spin_lock(&sbi->lookup_lock); in autofs4_lookup_active()
201 spin_unlock(&sbi->lookup_lock); in autofs4_lookup_active()
207 spin_unlock(&sbi->lookup_lock); in autofs4_lookup_active()
215 struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb); in autofs4_lookup_expiring() local
223 head = &sbi->expiring_list; in autofs4_lookup_expiring()
226 spin_lock(&sbi->lookup_lock); in autofs4_lookup_expiring()
233 spin_unlock(&sbi->lookup_lock); in autofs4_lookup_expiring()
261 spin_unlock(&sbi->lookup_lock); in autofs4_lookup_expiring()
267 spin_unlock(&sbi->lookup_lock); in autofs4_lookup_expiring()
274 struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb); in autofs4_mount_wait() local
282 status = autofs4_wait(sbi, dentry, NFY_MOUNT); in autofs4_mount_wait()
314 struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb); in autofs4_mountpoint_changed() local
320 if (autofs_type_indirect(sbi->type) && d_unhashed(dentry)) { in autofs4_mountpoint_changed()
339 struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb); in autofs4_d_automount() local
346 if (autofs4_oz_mode(sbi)) in autofs4_d_automount()
362 spin_lock(&sbi->fs_lock); in autofs4_d_automount()
364 spin_unlock(&sbi->fs_lock); in autofs4_d_automount()
377 spin_unlock(&sbi->fs_lock); in autofs4_d_automount()
393 if (sbi->version > 4) { in autofs4_d_automount()
395 spin_unlock(&sbi->fs_lock); in autofs4_d_automount()
400 spin_unlock(&sbi->fs_lock); in autofs4_d_automount()
405 spin_unlock(&sbi->fs_lock); in autofs4_d_automount()
407 spin_lock(&sbi->fs_lock); in autofs4_d_automount()
410 spin_unlock(&sbi->fs_lock); in autofs4_d_automount()
414 spin_unlock(&sbi->fs_lock); in autofs4_d_automount()
426 struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb); in autofs4_d_manage() local
433 if (autofs4_oz_mode(sbi)) { in autofs4_d_manage()
475 spin_lock(&sbi->fs_lock); in autofs4_d_manage()
494 spin_unlock(&sbi->fs_lock); in autofs4_d_manage()
503 struct autofs_sb_info *sbi; in autofs4_lookup() local
513 sbi = autofs4_sbi(dir->i_sb); in autofs4_lookup()
516 current->pid, task_pgrp_nr(current), sbi->catatonic, in autofs4_lookup()
517 autofs4_oz_mode(sbi)); in autofs4_lookup()
529 if (!autofs4_oz_mode(sbi) && !IS_ROOT(dentry->d_parent)) in autofs4_lookup()
534 autofs_type_indirect(sbi->type)) in autofs4_lookup()
537 ino = autofs4_new_ino(sbi); in autofs4_lookup()
553 struct autofs_sb_info *sbi = autofs4_sbi(dir->i_sb); in autofs4_dir_symlink() local
562 if (!autofs4_oz_mode(sbi)) in autofs4_dir_symlink()
614 struct autofs_sb_info *sbi = autofs4_sbi(dir->i_sb); in autofs4_dir_unlink() local
619 if (!autofs4_oz_mode(sbi) && !capable(CAP_SYS_ADMIN)) in autofs4_dir_unlink()
634 spin_lock(&sbi->lookup_lock); in autofs4_dir_unlink()
637 spin_unlock(&sbi->lookup_lock); in autofs4_dir_unlink()
694 struct autofs_sb_info *sbi = autofs4_sbi(dir->i_sb); in autofs4_dir_rmdir() local
700 if (!autofs4_oz_mode(sbi)) in autofs4_dir_rmdir()
703 spin_lock(&sbi->lookup_lock); in autofs4_dir_rmdir()
705 spin_unlock(&sbi->lookup_lock); in autofs4_dir_rmdir()
710 spin_unlock(&sbi->lookup_lock); in autofs4_dir_rmdir()
712 if (sbi->version < 5) in autofs4_dir_rmdir()
733 struct autofs_sb_info *sbi = autofs4_sbi(dir->i_sb); in autofs4_dir_mkdir() local
738 if (!autofs4_oz_mode(sbi)) in autofs4_dir_mkdir()
754 if (sbi->version < 5) in autofs4_dir_mkdir()
770 static inline int autofs4_compat_get_set_timeout(struct autofs_sb_info *sbi, in autofs4_compat_get_set_timeout() argument
780 rv = put_user(sbi->exp_timeout/HZ, p); in autofs4_compat_get_set_timeout()
785 sbi->exp_timeout = 0; in autofs4_compat_get_set_timeout()
787 sbi->exp_timeout = ntimeout * HZ; in autofs4_compat_get_set_timeout()
795 static inline int autofs4_get_set_timeout(struct autofs_sb_info *sbi, in autofs4_get_set_timeout() argument
805 rv = put_user(sbi->exp_timeout/HZ, p); in autofs4_get_set_timeout()
810 sbi->exp_timeout = 0; in autofs4_get_set_timeout()
812 sbi->exp_timeout = ntimeout * HZ; in autofs4_get_set_timeout()
820 static inline int autofs4_get_protover(struct autofs_sb_info *sbi, in autofs4_get_protover() argument
823 return put_user(sbi->version, p); in autofs4_get_protover()
827 static inline int autofs4_get_protosubver(struct autofs_sb_info *sbi, in autofs4_get_protosubver() argument
830 return put_user(sbi->sub_version, p); in autofs4_get_protosubver()
868 struct autofs_sb_info *sbi = autofs4_sbi(inode->i_sb); in autofs4_root_ioctl_unlocked() local
872 cmd, arg, sbi, task_pgrp_nr(current)); in autofs4_root_ioctl_unlocked()
878 if (!autofs4_oz_mode(sbi) && !capable(CAP_SYS_ADMIN)) in autofs4_root_ioctl_unlocked()
883 return autofs4_wait_release(sbi, (autofs_wqt_t) arg, 0); in autofs4_root_ioctl_unlocked()
885 return autofs4_wait_release(sbi, (autofs_wqt_t) arg, -ENOENT); in autofs4_root_ioctl_unlocked()
887 autofs4_catatonic_mode(sbi); in autofs4_root_ioctl_unlocked()
890 return autofs4_get_protover(sbi, p); in autofs4_root_ioctl_unlocked()
892 return autofs4_get_protosubver(sbi, p); in autofs4_root_ioctl_unlocked()
894 return autofs4_get_set_timeout(sbi, p); in autofs4_root_ioctl_unlocked()
897 return autofs4_compat_get_set_timeout(sbi, p); in autofs4_root_ioctl_unlocked()
906 filp->f_path.mnt, sbi, p); in autofs4_root_ioctl_unlocked()
910 filp->f_path.mnt, sbi, p); in autofs4_root_ioctl_unlocked()