Lines Matching refs:asb

94 	struct adfs_sb_info *asb = ADFS_SB(sb);  in adfs_put_super()  local
97 kfree_rcu(asb, rcu); in adfs_put_super()
102 struct adfs_sb_info *asb = ADFS_SB(root->d_sb); in adfs_show_options() local
104 if (!uid_eq(asb->s_uid, GLOBAL_ROOT_UID)) in adfs_show_options()
105 seq_printf(seq, ",uid=%u", from_kuid_munged(&init_user_ns, asb->s_uid)); in adfs_show_options()
106 if (!gid_eq(asb->s_gid, GLOBAL_ROOT_GID)) in adfs_show_options()
107 seq_printf(seq, ",gid=%u", from_kgid_munged(&init_user_ns, asb->s_gid)); in adfs_show_options()
108 if (asb->s_owner_mask != ADFS_DEFAULT_OWNER_MASK) in adfs_show_options()
109 seq_printf(seq, ",ownmask=%o", asb->s_owner_mask); in adfs_show_options()
110 if (asb->s_other_mask != ADFS_DEFAULT_OTHER_MASK) in adfs_show_options()
111 seq_printf(seq, ",othmask=%o", asb->s_other_mask); in adfs_show_options()
112 if (asb->s_ftsuffix != 0) in adfs_show_options()
113 seq_printf(seq, ",ftsuffix=%u", asb->s_ftsuffix); in adfs_show_options()
129 static int parse_options(struct super_block *sb, struct adfs_sb_info *asb, in parse_options() argument
149 asb->s_uid = make_kuid(current_user_ns(), option); in parse_options()
150 if (!uid_valid(asb->s_uid)) in parse_options()
156 asb->s_gid = make_kgid(current_user_ns(), option); in parse_options()
157 if (!gid_valid(asb->s_gid)) in parse_options()
163 asb->s_owner_mask = option; in parse_options()
168 asb->s_other_mask = option; in parse_options()
173 asb->s_ftsuffix = option; in parse_options()
285 struct adfs_sb_info *asb = ADFS_SB(sb); in adfs_probe() local
320 asb->s_map = adfs_read_map(sb, dr); in adfs_probe()
322 return PTR_ERR_OR_ZERO(asb->s_map); in adfs_probe()
368 struct adfs_sb_info *asb; in adfs_fill_super() local
374 asb = kzalloc(sizeof(*asb), GFP_KERNEL); in adfs_fill_super()
375 if (!asb) in adfs_fill_super()
378 sb->s_fs_info = asb; in adfs_fill_super()
383 asb->s_uid = GLOBAL_ROOT_UID; in adfs_fill_super()
384 asb->s_gid = GLOBAL_ROOT_GID; in adfs_fill_super()
385 asb->s_owner_mask = ADFS_DEFAULT_OWNER_MASK; in adfs_fill_super()
386 asb->s_other_mask = ADFS_DEFAULT_OTHER_MASK; in adfs_fill_super()
387 asb->s_ftsuffix = 0; in adfs_fill_super()
389 if (parse_options(sb, asb, data)) in adfs_fill_super()
409 dr = adfs_map_discrecord(asb->s_map); in adfs_fill_super()
426 asb->s_dir = &adfs_fplus_dir_ops; in adfs_fill_super()
427 asb->s_namelen = ADFS_FPLUS_NAME_LEN; in adfs_fill_super()
429 asb->s_dir = &adfs_f_dir_ops; in adfs_fill_super()
430 asb->s_namelen = ADFS_F_NAME_LEN; in adfs_fill_super()
436 if (asb->s_ftsuffix) in adfs_fill_super()
437 asb->s_namelen += 4; in adfs_fill_super()
452 kfree(asb); in adfs_fill_super()