tnc_misc.c (05909cd9a0c8811731b38697af13075e8954314f) tnc_misc.c (b8f1da98a219ab8c371fae5c3efb4b90b8594f3b)
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: Adrian Hunter
8 * Artem Bityutskiy (Битюцкий Артём)

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

450
451/**
452 * ubifs_tnc_read_node - read a leaf node from the flash media.
453 * @c: UBIFS file-system description object
454 * @zbr: key and position of the node
455 * @node: node is returned here
456 *
457 * This function reads a node defined by @zbr from the flash media. Returns
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: Adrian Hunter
8 * Artem Bityutskiy (Битюцкий Артём)

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

450
451/**
452 * ubifs_tnc_read_node - read a leaf node from the flash media.
453 * @c: UBIFS file-system description object
454 * @zbr: key and position of the node
455 * @node: node is returned here
456 *
457 * This function reads a node defined by @zbr from the flash media. Returns
458 * zero in case of success or a negative negative error code in case of
459 * failure.
458 * zero in case of success or a negative error code in case of failure.
460 */
461int ubifs_tnc_read_node(struct ubifs_info *c, struct ubifs_zbranch *zbr,
462 void *node)
463{
464 union ubifs_key key1, *key = &zbr->key;
465 int err, type = key_type(c, key);
466 struct ubifs_wbuf *wbuf;
467

--- 36 unchanged lines hidden ---
459 */
460int ubifs_tnc_read_node(struct ubifs_info *c, struct ubifs_zbranch *zbr,
461 void *node)
462{
463 union ubifs_key key1, *key = &zbr->key;
464 int err, type = key_type(c, key);
465 struct ubifs_wbuf *wbuf;
466

--- 36 unchanged lines hidden ---