]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - rpmsg/rpmsg.git/blob - block/blk-mq-debugfs-zoned.c
Merge branch 'rpmsg-linux-4.19.y' of git://git.ti.com/rpmsg/rpmsg into rpmsg-ti-linux...
[rpmsg/rpmsg.git] / block / blk-mq-debugfs-zoned.c
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  */
8 #include <linux/blkdev.h>
9 #include "blk-mq-debugfs.h"
11 int queue_zone_wlock_show(void *data, struct seq_file *m)
12 {
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;
24 }