Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
[linux/fpc-iii.git] / block / blk-mq-debugfs-zoned.c
blobfb2c82c351e4fd19553b3b2bb9eca84a8320218b
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Copyright (C) 2017 Western Digital Corporation or its affiliates.
5 * This file is released under the GPL.
6 */
8 #include <linux/blkdev.h>
9 #include "blk-mq-debugfs.h"
11 int queue_zone_wlock_show(void *data, struct seq_file *m)
13 struct request_queue *q = data;
14 unsigned int i;
16 if (!q->seq_zones_wlock)
17 return 0;
19 for (i = 0; i < q->nr_zones; i++)
20 if (test_bit(i, q->seq_zones_wlock))
21 seq_printf(m, "%u\n", i);
23 return 0;