| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * This file is part of UBIFS. |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * 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 |
|---|
| 18 | 6 | * |
|---|
| 19 | 7 | * Authors: Adrian Hunter |
|---|
| 20 | 8 | * Artem Bityutskiy (Битюцкий Артём) |
|---|
| .. | .. |
|---|
| 281 | 269 | break; |
|---|
| 282 | 270 | /* No more room on heap so make it un-categorized */ |
|---|
| 283 | 271 | cat = LPROPS_UNCAT; |
|---|
| 284 | | - /* Fall through */ |
|---|
| 272 | + fallthrough; |
|---|
| 285 | 273 | case LPROPS_UNCAT: |
|---|
| 286 | 274 | list_add(&lprops->list, &c->uncat_list); |
|---|
| 287 | 275 | break; |
|---|
| .. | .. |
|---|
| 325 | 313 | case LPROPS_FREEABLE: |
|---|
| 326 | 314 | c->freeable_cnt -= 1; |
|---|
| 327 | 315 | ubifs_assert(c, c->freeable_cnt >= 0); |
|---|
| 328 | | - /* Fall through */ |
|---|
| 316 | + fallthrough; |
|---|
| 329 | 317 | case LPROPS_UNCAT: |
|---|
| 330 | 318 | case LPROPS_EMPTY: |
|---|
| 331 | 319 | case LPROPS_FRDI_IDX: |
|---|
| .. | .. |
|---|
| 1107 | 1095 | return LPT_SCAN_CONTINUE; |
|---|
| 1108 | 1096 | } |
|---|
| 1109 | 1097 | |
|---|
| 1110 | | - buf = __vmalloc(c->leb_size, GFP_NOFS, PAGE_KERNEL); |
|---|
| 1098 | + buf = __vmalloc(c->leb_size, GFP_NOFS); |
|---|
| 1111 | 1099 | if (!buf) |
|---|
| 1112 | 1100 | return -ENOMEM; |
|---|
| 1113 | 1101 | |
|---|