1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Copyright (C) 2017 Western Digital Corporation or its affiliates.
4  *
5  * This file is released under the GPL.
6  */
7 
8 #include <linux/blkdev.h>
9 #include "blk-mq-debugfs.h"
10 
11 int queue_zone_wlock_show(void *data, struct seq_file *m)
12 {
13 	struct request_queue *q = data;
14 	unsigned int i;
15 
16 	if (!q->seq_zones_wlock)
17 		return 0;
18 
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);
22 
23 	return 0;
24 }
25