debug.c (c95baf12f5077419db01313ab61c2aac007d40cd) | debug.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 * Authors: Artem Bityutskiy (Битюцкий Артём) 8 * Adrian Hunter --- 801 unchanged lines hidden (view full) --- 810void ubifs_dump_leb(const struct ubifs_info *c, int lnum) 811{ 812 struct ubifs_scan_leb *sleb; 813 struct ubifs_scan_node *snod; 814 void *buf; 815 816 pr_err("(pid %d) start dumping LEB %d\n", current->pid, lnum); 817 | 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 * Authors: Artem Bityutskiy (Битюцкий Артём) 8 * Adrian Hunter --- 801 unchanged lines hidden (view full) --- 810void ubifs_dump_leb(const struct ubifs_info *c, int lnum) 811{ 812 struct ubifs_scan_leb *sleb; 813 struct ubifs_scan_node *snod; 814 void *buf; 815 816 pr_err("(pid %d) start dumping LEB %d\n", current->pid, lnum); 817 |
818 buf = __vmalloc(c->leb_size, GFP_NOFS, PAGE_KERNEL); | 818 buf = __vmalloc(c->leb_size, GFP_NOFS); |
819 if (!buf) { 820 ubifs_err(c, "cannot allocate memory for dumping LEB %d", lnum); 821 return; 822 } 823 824 sleb = ubifs_scan(c, lnum, 0, buf, 0); 825 if (IS_ERR(sleb)) { 826 ubifs_err(c, "scan error %d", (int)PTR_ERR(sleb)); --- 2199 unchanged lines hidden --- | 819 if (!buf) { 820 ubifs_err(c, "cannot allocate memory for dumping LEB %d", lnum); 821 return; 822 } 823 824 sleb = ubifs_scan(c, lnum, 0, buf, 0); 825 if (IS_ERR(sleb)) { 826 ubifs_err(c, "scan error %d", (int)PTR_ERR(sleb)); --- 2199 unchanged lines hidden --- |