Lines Matching refs:ufs_sb
191 uspi = sb->u.ufs_sb.s_uspi; in ufs_error()
203 switch (sb->u.ufs_sb.s_mount_opt & UFS_MOUNT_ONERROR) { in ufs_error()
223 uspi = sb->u.ufs_sb.s_uspi; in ufs_panic()
327 uspi = sb->u.ufs_sb.s_uspi; in ufs_read_cylinder_structures()
346 sb->u.ufs_sb.s_csp[ufs_fragstoblks(i)] = (struct ufs_csum *)space; in ufs_read_cylinder_structures()
356 if (!(sb->u.ufs_sb.s_ucg = kmalloc (sizeof(struct buffer_head *) * uspi->s_ncg, GFP_KERNEL))) in ufs_read_cylinder_structures()
359 sb->u.ufs_sb.s_ucg[i] = NULL; in ufs_read_cylinder_structures()
361 sb->u.ufs_sb.s_ucpi[i] = NULL; in ufs_read_cylinder_structures()
362 sb->u.ufs_sb.s_cgno[i] = UFS_CGNO_EMPTY; in ufs_read_cylinder_structures()
366 if (!(sb->u.ufs_sb.s_ucg[i] = sb_bread(sb, ufs_cgcmin(i)))) in ufs_read_cylinder_structures()
368 if (!ufs_cg_chkmagic (sb, (struct ufs_cylinder_group *) sb->u.ufs_sb.s_ucg[i]->b_data)) in ufs_read_cylinder_structures()
371 ufs_print_cylinder_stuff(sb, (struct ufs_cylinder_group *) sb->u.ufs_sb.s_ucg[i]->b_data); in ufs_read_cylinder_structures()
375 if (!(sb->u.ufs_sb.s_ucpi[i] = kmalloc (sizeof(struct ufs_cg_private_info), GFP_KERNEL))) in ufs_read_cylinder_structures()
377 sb->u.ufs_sb.s_cgno[i] = UFS_CGNO_EMPTY; in ufs_read_cylinder_structures()
379 sb->u.ufs_sb.s_cg_loaded = 0; in ufs_read_cylinder_structures()
385 if (sb->u.ufs_sb.s_ucg) { in ufs_read_cylinder_structures()
387 if (sb->u.ufs_sb.s_ucg[i]) brelse (sb->u.ufs_sb.s_ucg[i]); in ufs_read_cylinder_structures()
388 kfree (sb->u.ufs_sb.s_ucg); in ufs_read_cylinder_structures()
390 if (sb->u.ufs_sb.s_ucpi[i]) kfree (sb->u.ufs_sb.s_ucpi[i]); in ufs_read_cylinder_structures()
408 uspi = sb->u.ufs_sb.s_uspi; in ufs_put_cylinder_structures()
412 base = space = (char*) sb->u.ufs_sb.s_csp[0]; in ufs_put_cylinder_structures()
424 for (i = 0; i < sb->u.ufs_sb.s_cg_loaded; i++) { in ufs_put_cylinder_structures()
426 kfree (sb->u.ufs_sb.s_ucpi[i]); in ufs_put_cylinder_structures()
429 kfree (sb->u.ufs_sb.s_ucpi[i]); in ufs_put_cylinder_structures()
431 brelse (sb->u.ufs_sb.s_ucg[i]); in ufs_put_cylinder_structures()
432 kfree (sb->u.ufs_sb.s_ucg); in ufs_put_cylinder_structures()
468 sb->u.ufs_sb.s_mount_opt = 0; in ufs_read_super()
469 ufs_set_opt (sb->u.ufs_sb.s_mount_opt, ONERROR_LOCK); in ufs_read_super()
470 if (!ufs_parse_options ((char *) data, &sb->u.ufs_sb.s_mount_opt)) { in ufs_read_super()
474 if (!(sb->u.ufs_sb.s_mount_opt & UFS_MOUNT_UFSTYPE)) { in ufs_read_super()
480 ufs_set_opt (sb->u.ufs_sb.s_mount_opt, UFSTYPE_OLD); in ufs_read_super()
483 sb->u.ufs_sb.s_uspi = uspi = in ufs_read_super()
492 switch (sb->u.ufs_sb.s_mount_opt & UFS_MOUNT_UFSTYPE) { in ufs_read_super()
626 sb->u.ufs_sb.s_bytesex = BYTESEX_LE; in ufs_read_super()
634 sb->u.ufs_sb.s_bytesex = BYTESEX_BE; in ufs_read_super()
638 if ((((sb->u.ufs_sb.s_mount_opt & UFS_MOUNT_UFSTYPE) == UFS_MOUNT_UFSTYPE_NEXTSTEP) in ufs_read_super()
639 || ((sb->u.ufs_sb.s_mount_opt & UFS_MOUNT_UFSTYPE) == UFS_MOUNT_UFSTYPE_NEXTSTEP_CD) in ufs_read_super()
640 || ((sb->u.ufs_sb.s_mount_opt & UFS_MOUNT_UFSTYPE) == UFS_MOUNT_UFSTYPE_OPENSTEP)) in ufs_read_super()
812 if ((sb->u.ufs_sb.s_mount_opt & UFS_MOUNT_UFSTYPE) == in ufs_read_super()
817 sb->u.ufs_sb.s_flags = flags; in ufs_read_super()
853 flags = sb->u.ufs_sb.s_flags; in ufs_write_super()
854 uspi = sb->u.ufs_sb.s_uspi; in ufs_write_super()
876 uspi = sb->u.ufs_sb.s_uspi; in ufs_put_super()
882 kfree (sb->u.ufs_sb.s_uspi); in ufs_put_super()
895 uspi = sb->u.ufs_sb.s_uspi; in ufs_remount()
896 flags = sb->u.ufs_sb.s_flags; in ufs_remount()
904 ufstype = sb->u.ufs_sb.s_mount_opt & UFS_MOUNT_UFSTYPE; in ufs_remount()
918 sb->u.ufs_sb.s_mount_opt = new_mount_opt; in ufs_remount()
958 sb->u.ufs_sb.s_mount_opt = new_mount_opt; in ufs_remount()
967 uspi = sb->u.ufs_sb.s_uspi; in ufs_statfs()