hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/drivers/block/drbd/drbd_bitmap.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 drbd_bitmap.c
34
....@@ -7,19 +8,6 @@
78 Copyright (C) 2004-2008, Philipp Reisner <philipp.reisner@linbit.com>.
89 Copyright (C) 2004-2008, Lars Ellenberg <lars.ellenberg@linbit.com>.
910
10
- drbd is free software; you can redistribute it and/or modify
11
- it under the terms of the GNU General Public License as published by
12
- the Free Software Foundation; either version 2, or (at your option)
13
- any later version.
14
-
15
- drbd is distributed in the hope that it will be useful,
16
- but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
- GNU General Public License for more details.
19
-
20
- You should have received a copy of the GNU General Public License
21
- along with drbd; see the file COPYING. If not, write to
22
- the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
2311 */
2412
2513 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -408,9 +396,7 @@
408396 bytes = sizeof(struct page *)*want;
409397 new_pages = kzalloc(bytes, GFP_NOIO | __GFP_NOWARN);
410398 if (!new_pages) {
411
- new_pages = __vmalloc(bytes,
412
- GFP_NOIO | __GFP_ZERO,
413
- PAGE_KERNEL);
399
+ new_pages = __vmalloc(bytes, GFP_NOIO | __GFP_ZERO);
414400 if (!new_pages)
415401 return NULL;
416402 }