]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - repair/incore_bmc.c
xfs: remove unnecessary parameter from xfs_iext_inc_seq
[thirdparty/xfsprogs-dev.git] / repair / incore_bmc.c
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Copyright (c) 2000-2001,2005 Silicon Graphics, Inc.
4 * All Rights Reserved.
5 */
6
7 #include "libxfs.h"
8 #include "avl.h"
9 #include "globals.h"
10 #include "incore.h"
11 #include "agheader.h"
12 #include "protos.h"
13 #include "err_protos.h"
14
15 void
16 init_bm_cursor(bmap_cursor_t *cursor, int num_levels)
17 {
18 int i;
19
20 memset(cursor, 0, sizeof(bmap_cursor_t));
21 cursor->ino = NULLFSINO;
22 cursor->num_levels = num_levels;
23
24 for (i = 0; i < XR_MAX_BMLEVELS; i++) {
25 cursor->level[i].fsbno = NULLFSBLOCK;
26 cursor->level[i].right_fsbno = NULLFSBLOCK;
27 cursor->level[i].left_fsbno = NULLFSBLOCK;
28 cursor->level[i].first_key = NULLFILEOFF;
29 cursor->level[i].last_key = NULLFILEOFF;
30 }
31 }