]> git.ipfire.org Git - thirdparty/kernel/stable.git/blame - block/blk-mq-debugfs-zoned.c
Merge tag 'drm-fixes-2019-04-12' of git://anongit.freedesktop.org/drm/drm
[thirdparty/kernel/stable.git] / block / blk-mq-debugfs-zoned.c
CommitLineData
6a5ac984
BVA
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2017 Western Digital Corporation or its affiliates.
6a5ac984
BVA
4 */
5
6#include <linux/blkdev.h>
7#include "blk-mq-debugfs.h"
8
9int queue_zone_wlock_show(void *data, struct seq_file *m)
10{
11 struct request_queue *q = data;
12 unsigned int i;
13
14 if (!q->seq_zones_wlock)
15 return 0;
16
17 for (i = 0; i < q->nr_zones; i++)
18 if (test_bit(i, q->seq_zones_wlock))
19 seq_printf(m, "%u\n", i);
20
21 return 0;
22}