hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/fs/ubifs/lprops.c
....@@ -1,20 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * This file is part of UBIFS.
34 *
45 * Copyright (C) 2006-2008 Nokia Corporation.
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms of the GNU General Public License version 2 as published by
8
- * the Free Software Foundation.
9
- *
10
- * This program is distributed in the hope that it will be useful, but WITHOUT
11
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13
- * more details.
14
- *
15
- * You should have received a copy of the GNU General Public License along with
16
- * this program; if not, write to the Free Software Foundation, Inc., 51
17
- * Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
186 *
197 * Authors: Adrian Hunter
208 * Artem Bityutskiy (Битюцкий Артём)
....@@ -281,7 +269,7 @@
281269 break;
282270 /* No more room on heap so make it un-categorized */
283271 cat = LPROPS_UNCAT;
284
- /* Fall through */
272
+ fallthrough;
285273 case LPROPS_UNCAT:
286274 list_add(&lprops->list, &c->uncat_list);
287275 break;
....@@ -325,7 +313,7 @@
325313 case LPROPS_FREEABLE:
326314 c->freeable_cnt -= 1;
327315 ubifs_assert(c, c->freeable_cnt >= 0);
328
- /* Fall through */
316
+ fallthrough;
329317 case LPROPS_UNCAT:
330318 case LPROPS_EMPTY:
331319 case LPROPS_FRDI_IDX:
....@@ -1107,7 +1095,7 @@
11071095 return LPT_SCAN_CONTINUE;
11081096 }
11091097
1110
- buf = __vmalloc(c->leb_size, GFP_NOFS, PAGE_KERNEL);
1098
+ buf = __vmalloc(c->leb_size, GFP_NOFS);
11111099 if (!buf)
11121100 return -ENOMEM;
11131101