Source
1
+
// SPDX-License-Identifier: GPL-2.0-only
1
2
/*
2
3
* Copyright (C) 2016 Facebook
3
4
* Copyright (C) 2013-2014 Jens Axboe
4
-
*
5
-
* This program is free software; you can redistribute it and/or
6
-
* modify it under the terms of the GNU General Public
7
-
* License v2 as published by the Free Software Foundation.
8
-
*
9
-
* This program is distributed in the hope that it will be useful,
10
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
-
* General Public License for more details.
13
-
*
14
-
* You should have received a copy of the GNU General Public License
15
-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
16
5
*/
17
6
18
7
#include <linux/sched.h>
19
8
#include <linux/random.h>
20
9
#include <linux/sbitmap.h>
21
10
#include <linux/seq_file.h>
22
11
23
12
/*
24
13
* See if we have deferred clears that we can batch move
25
14
*/