fsck.c (81ed9ce3671125ee384c1a205747a853ca2a1739) fsck.c (6fed42bb7750e217b0d1169ccfccc7639a3e1d3f)
1// SPDX-License-Identifier: GPL-2.0
2
3#include "bcachefs.h"
4#include "bkey_buf.h"
5#include "btree_update.h"
6#include "dirent.h"
7#include "error.h"
8#include "fs-common.h"

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

853 return 0;
854
855 if (k.k->type != KEY_TYPE_dirent)
856 return 0;
857
858 d = bkey_s_c_to_dirent(k);
859 d_inum = le64_to_cpu(d.v->d_inum);
860
1// SPDX-License-Identifier: GPL-2.0
2
3#include "bcachefs.h"
4#include "bkey_buf.h"
5#include "btree_update.h"
6#include "dirent.h"
7#include "error.h"
8#include "fs-common.h"

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

853 return 0;
854
855 if (k.k->type != KEY_TYPE_dirent)
856 return 0;
857
858 d = bkey_s_c_to_dirent(k);
859 d_inum = le64_to_cpu(d.v->d_inum);
860
861 ret = bch2_dirent_read_target(trans, d, &d_inum);
861 ret = __bch2_dirent_read_target(&trans, d,
862 &target_subvol,
863 &target_snapshot,
864 &target_inum);
862 if (ret && ret != -ENOENT)
863 return ret;
864
865 ret = __lookup_inode(trans, d_inum, &target, &target_snapshot);
866 if (ret && ret != -ENOENT)
867 return ret;
868
869 have_target = !ret;

--- 653 unchanged lines hidden ---
865 if (ret && ret != -ENOENT)
866 return ret;
867
868 ret = __lookup_inode(trans, d_inum, &target, &target_snapshot);
869 if (ret && ret != -ENOENT)
870 return ret;
871
872 have_target = !ret;

--- 653 unchanged lines hidden ---