| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | drbd_bitmap.c |
|---|
| 3 | 4 | |
|---|
| .. | .. |
|---|
| 7 | 8 | Copyright (C) 2004-2008, Philipp Reisner <philipp.reisner@linbit.com>. |
|---|
| 8 | 9 | Copyright (C) 2004-2008, Lars Ellenberg <lars.ellenberg@linbit.com>. |
|---|
| 9 | 10 | |
|---|
| 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. |
|---|
| 23 | 11 | */ |
|---|
| 24 | 12 | |
|---|
| 25 | 13 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
|---|
| .. | .. |
|---|
| 408 | 396 | bytes = sizeof(struct page *)*want; |
|---|
| 409 | 397 | new_pages = kzalloc(bytes, GFP_NOIO | __GFP_NOWARN); |
|---|
| 410 | 398 | 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); |
|---|
| 414 | 400 | if (!new_pages) |
|---|
| 415 | 401 | return NULL; |
|---|
| 416 | 402 | } |
|---|