rmap.c (1c8b9fd278c08e16c27a41be484b77383738de1f) | rmap.c (14dd46cf31f4aaffcf26b00de9af39d01ec8d547) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright (C) 2017-2023 Oracle. All Rights Reserved. 4 * Author: Darrick J. Wong <djwong@kernel.org> 5 */ 6#include "xfs.h" 7#include "xfs_fs.h" 8#include "xfs_shared.h" --- 433 unchanged lines hidden (view full) --- 442 &cr->ag_owned); 443 xfs_trans_brelse(sc->tp, agfl_bp); 444 if (error) 445 goto out; 446 447 /* OWN_INOBT: inobt, finobt */ 448 cur = sc->sa.ino_cur; 449 if (!cur) | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright (C) 2017-2023 Oracle. All Rights Reserved. 4 * Author: Darrick J. Wong <djwong@kernel.org> 5 */ 6#include "xfs.h" 7#include "xfs_fs.h" 8#include "xfs_shared.h" --- 433 unchanged lines hidden (view full) --- 442 &cr->ag_owned); 443 xfs_trans_brelse(sc->tp, agfl_bp); 444 if (error) 445 goto out; 446 447 /* OWN_INOBT: inobt, finobt */ 448 cur = sc->sa.ino_cur; 449 if (!cur) |
450 cur = xfs_inobt_init_cursor(sc->sa.pag, sc->tp, sc->sa.agi_bp, 451 XFS_BTNUM_INO); | 450 cur = xfs_inobt_init_cursor(sc->sa.pag, sc->tp, sc->sa.agi_bp); |
452 error = xagb_bitmap_set_btblocks(&cr->inobt_owned, cur); 453 if (cur != sc->sa.ino_cur) 454 xfs_btree_del_cursor(cur, error); 455 if (error) 456 goto out; 457 458 if (xfs_has_finobt(sc->mp)) { 459 cur = sc->sa.fino_cur; 460 if (!cur) | 451 error = xagb_bitmap_set_btblocks(&cr->inobt_owned, cur); 452 if (cur != sc->sa.ino_cur) 453 xfs_btree_del_cursor(cur, error); 454 if (error) 455 goto out; 456 457 if (xfs_has_finobt(sc->mp)) { 458 cur = sc->sa.fino_cur; 459 if (!cur) |
461 cur = xfs_inobt_init_cursor(sc->sa.pag, sc->tp, 462 sc->sa.agi_bp, XFS_BTNUM_FINO); | 460 cur = xfs_finobt_init_cursor(sc->sa.pag, sc->tp, 461 sc->sa.agi_bp); |
463 error = xagb_bitmap_set_btblocks(&cr->inobt_owned, cur); 464 if (cur != sc->sa.fino_cur) 465 xfs_btree_del_cursor(cur, error); 466 if (error) 467 goto out; 468 } 469 470 /* OWN_REFC: refcountbt */ --- 170 unchanged lines hidden --- | 462 error = xagb_bitmap_set_btblocks(&cr->inobt_owned, cur); 463 if (cur != sc->sa.fino_cur) 464 xfs_btree_del_cursor(cur, error); 465 if (error) 466 goto out; 467 } 468 469 /* OWN_REFC: refcountbt */ --- 170 unchanged lines hidden --- |