orphan.c (d053cf0d771f6547cb0537759a9af63cf402908d) orphan.c (88dca4ca5a93d2c09e5bbc6a62fbfc3af83c4fca)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * This file is part of UBIFS.
4 *
5 * Copyright (C) 2006-2008 Nokia Corporation.
6 *
7 * Author: Adrian Hunter
8 */

--- 963 unchanged lines hidden (view full) ---

972{
973 int lnum, err = 0;
974 void *buf;
975
976 /* Check no-orphans flag and skip this if no orphans */
977 if (c->no_orphs)
978 return 0;
979
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * This file is part of UBIFS.
4 *
5 * Copyright (C) 2006-2008 Nokia Corporation.
6 *
7 * Author: Adrian Hunter
8 */

--- 963 unchanged lines hidden (view full) ---

972{
973 int lnum, err = 0;
974 void *buf;
975
976 /* Check no-orphans flag and skip this if no orphans */
977 if (c->no_orphs)
978 return 0;
979
980 buf = __vmalloc(c->leb_size, GFP_NOFS, PAGE_KERNEL);
980 buf = __vmalloc(c->leb_size, GFP_NOFS);
981 if (!buf) {
982 ubifs_err(c, "cannot allocate memory to check orphans");
983 return 0;
984 }
985
986 for (lnum = c->orph_first; lnum <= c->orph_last; lnum++) {
987 struct ubifs_scan_leb *sleb;
988

--- 60 unchanged lines hidden ---
981 if (!buf) {
982 ubifs_err(c, "cannot allocate memory to check orphans");
983 return 0;
984 }
985
986 for (lnum = c->orph_first; lnum <= c->orph_last; lnum++) {
987 struct ubifs_scan_leb *sleb;
988

--- 60 unchanged lines hidden ---