Lines Matching refs:qgroups_kobj
2078 static ssize_t qgroup_enabled_show(struct kobject *qgroups_kobj, in qgroup_enabled_show() argument
2082 struct btrfs_fs_info *fs_info = to_fs_info(qgroups_kobj->parent); in qgroup_enabled_show()
2093 static ssize_t qgroup_inconsistent_show(struct kobject *qgroups_kobj, in qgroup_inconsistent_show() argument
2097 struct btrfs_fs_info *fs_info = to_fs_info(qgroups_kobj->parent); in qgroup_inconsistent_show()
2108 static ssize_t qgroup_drop_subtree_thres_show(struct kobject *qgroups_kobj, in qgroup_drop_subtree_thres_show() argument
2112 struct btrfs_fs_info *fs_info = to_fs_info(qgroups_kobj->parent); in qgroup_drop_subtree_thres_show()
2122 static ssize_t qgroup_drop_subtree_thres_store(struct kobject *qgroups_kobj, in qgroup_drop_subtree_thres_store() argument
2126 struct btrfs_fs_info *fs_info = to_fs_info(qgroups_kobj->parent); in qgroup_drop_subtree_thres_store()
2243 struct kobject *qgroups_kobj = fs_info->qgroups_kobj; in btrfs_sysfs_add_one_qgroup() local
2250 if (!qgroups_kobj) in btrfs_sysfs_add_one_qgroup()
2253 ret = kobject_init_and_add(&qgroup->kobj, &qgroup_ktype, qgroups_kobj, in btrfs_sysfs_add_one_qgroup()
2273 if (fs_info->qgroups_kobj) { in btrfs_sysfs_del_qgroups()
2274 kobject_del(fs_info->qgroups_kobj); in btrfs_sysfs_del_qgroups()
2275 kobject_put(fs_info->qgroups_kobj); in btrfs_sysfs_del_qgroups()
2276 fs_info->qgroups_kobj = NULL; in btrfs_sysfs_del_qgroups()
2292 if (fs_info->qgroups_kobj) in btrfs_sysfs_add_qgroups()
2295 fs_info->qgroups_kobj = kzalloc(sizeof(struct kobject), GFP_KERNEL); in btrfs_sysfs_add_qgroups()
2296 if (!fs_info->qgroups_kobj) in btrfs_sysfs_add_qgroups()
2299 ret = kobject_init_and_add(fs_info->qgroups_kobj, &qgroups_ktype, in btrfs_sysfs_add_qgroups()