diff options
author | 2024-10-01 17:43:36 -0400 | |
---|---|---|
committer | 2024-10-02 21:30:55 -0400 | |
commit | abaa6d4f6ab8371c5b73afb726ff1c012526e999 (patch) | |
tree | 06a61bcd33b75891e786b1fc9d0665ae641652c1 | |
parent | bcachefs: Fix bad shift in bch2_read_flag_list() (diff) | |
download | wireguard-linux-abaa6d4f6ab8371c5b73afb726ff1c012526e999.tar.xz wireguard-linux-abaa6d4f6ab8371c5b73afb726ff1c012526e999.zip |
bcachefs: Fix return type of dirent_points_to_inode_nowarn()
we're returning an error code now, not a bool
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/fsck.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/fsck.c b/fs/bcachefs/fsck.c index 0d8b782b63fb..c6c98ee87ec9 100644 --- a/fs/bcachefs/fsck.c +++ b/fs/bcachefs/fsck.c @@ -28,8 +28,8 @@ static bool inode_points_to_dirent(struct bch_inode_unpacked *inode, inode->bi_dir_offset == d.k->p.offset; } -static bool dirent_points_to_inode_nowarn(struct bkey_s_c_dirent d, - struct bch_inode_unpacked *inode) +static int dirent_points_to_inode_nowarn(struct bkey_s_c_dirent d, + struct bch_inode_unpacked *inode) { if (d.v->d_type == DT_SUBVOL ? le32_to_cpu(d.v->d_child_subvol) == inode->bi_subvol |