diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-10-14 13:14:40 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:14 -0400 |
commit | bd547c8acb1aa76ceab1987109ac6ceae698fcc9 (patch) | |
tree | ed735fa84235b71d0d16627a6a0e805fb414d1e9 /fs/bcachefs/dirent.c | |
parent | 60816d9ba69bf746e3f6beda4b6e62e914690024 (diff) | |
download | linux-bd547c8acb1aa76ceab1987109ac6ceae698fcc9.tar.gz linux-bd547c8acb1aa76ceab1987109ac6ceae698fcc9.tar.bz2 linux-bd547c8acb1aa76ceab1987109ac6ceae698fcc9.zip |
bcachefs: Fix __bch2_dirent_read_target()
We were shadowing our exist status, oops
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/dirent.c')
-rw-r--r-- | fs/bcachefs/dirent.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/bcachefs/dirent.c b/fs/bcachefs/dirent.c index c7344ac87fcd..cd5468b15ba2 100644 --- a/fs/bcachefs/dirent.c +++ b/fs/bcachefs/dirent.c @@ -183,6 +183,7 @@ int __bch2_dirent_read_target(struct btree_trans *trans, u32 *subvol, u32 *snapshot, u64 *inum, bool is_fsck) { + struct bch_subvolume s; int ret = 0; *subvol = 0; @@ -191,9 +192,6 @@ int __bch2_dirent_read_target(struct btree_trans *trans, if (likely(d.v->d_type != DT_SUBVOL)) { *inum = le64_to_cpu(d.v->d_inum); } else { - struct bch_subvolume s; - int ret; - *subvol = le64_to_cpu(d.v->d_inum); ret = bch2_subvolume_get(trans, *subvol, !is_fsck, BTREE_ITER_CACHED, &s); |