blk-mq-sysfs.c (552c69b36ebd966186573b9c7a286b390935cce1) blk-mq-sysfs.c (5657a819a8d94426c76be04dcedfad0f64cfff00)
1#include <linux/kernel.h>
2#include <linux/module.h>
3#include <linux/backing-dev.h>
4#include <linux/bio.h>
5#include <linux/blkdev.h>
6#include <linux/mm.h>
7#include <linux/init.h>
8#include <linux/slab.h>

--- 152 unchanged lines hidden (view full) ---

161 return ret;
162}
163
164static struct attribute *default_ctx_attrs[] = {
165 NULL,
166};
167
168static struct blk_mq_hw_ctx_sysfs_entry blk_mq_hw_sysfs_nr_tags = {
1#include <linux/kernel.h>
2#include <linux/module.h>
3#include <linux/backing-dev.h>
4#include <linux/bio.h>
5#include <linux/blkdev.h>
6#include <linux/mm.h>
7#include <linux/init.h>
8#include <linux/slab.h>

--- 152 unchanged lines hidden (view full) ---

161 return ret;
162}
163
164static struct attribute *default_ctx_attrs[] = {
165 NULL,
166};
167
168static struct blk_mq_hw_ctx_sysfs_entry blk_mq_hw_sysfs_nr_tags = {
169 .attr = {.name = "nr_tags", .mode = S_IRUGO },
169 .attr = {.name = "nr_tags", .mode = 0444 },
170 .show = blk_mq_hw_sysfs_nr_tags_show,
171};
172static struct blk_mq_hw_ctx_sysfs_entry blk_mq_hw_sysfs_nr_reserved_tags = {
170 .show = blk_mq_hw_sysfs_nr_tags_show,
171};
172static struct blk_mq_hw_ctx_sysfs_entry blk_mq_hw_sysfs_nr_reserved_tags = {
173 .attr = {.name = "nr_reserved_tags", .mode = S_IRUGO },
173 .attr = {.name = "nr_reserved_tags", .mode = 0444 },
174 .show = blk_mq_hw_sysfs_nr_reserved_tags_show,
175};
176static struct blk_mq_hw_ctx_sysfs_entry blk_mq_hw_sysfs_cpus = {
174 .show = blk_mq_hw_sysfs_nr_reserved_tags_show,
175};
176static struct blk_mq_hw_ctx_sysfs_entry blk_mq_hw_sysfs_cpus = {
177 .attr = {.name = "cpu_list", .mode = S_IRUGO },
177 .attr = {.name = "cpu_list", .mode = 0444 },
178 .show = blk_mq_hw_sysfs_cpus_show,
179};
180
181static struct attribute *default_hw_ctx_attrs[] = {
182 &blk_mq_hw_sysfs_nr_tags.attr,
183 &blk_mq_hw_sysfs_nr_reserved_tags.attr,
184 &blk_mq_hw_sysfs_cpus.attr,
185 NULL,

--- 195 unchanged lines hidden ---
178 .show = blk_mq_hw_sysfs_cpus_show,
179};
180
181static struct attribute *default_hw_ctx_attrs[] = {
182 &blk_mq_hw_sysfs_nr_tags.attr,
183 &blk_mq_hw_sysfs_nr_reserved_tags.attr,
184 &blk_mq_hw_sysfs_cpus.attr,
185 NULL,

--- 195 unchanged lines hidden ---