X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libbcachefs%2Fdirent.h;h=ad131e8edc29649da8a544f71d95740a13bfa480;hb=46a6b9210c927ab46fd1227cb6f641be0b4a7505;hp=1bb4d802bc1db1ea8bb79a454074a51afb595324;hpb=837b76ce9507fa2a69ddeecc1e1b6d3fabb08227;p=bcachefs-tools-debian diff --git a/libbcachefs/dirent.h b/libbcachefs/dirent.h index 1bb4d80..ad131e8 100644 --- a/libbcachefs/dirent.h +++ b/libbcachefs/dirent.h @@ -6,13 +6,13 @@ extern const struct bch_hash_desc bch2_dirent_hash_desc; -const char *bch2_dirent_invalid(const struct bch_fs *, struct bkey_s_c); +int bch2_dirent_invalid(const struct bch_fs *, struct bkey_s_c, unsigned, struct printbuf *); void bch2_dirent_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c); -#define bch2_bkey_ops_dirent (struct bkey_ops) { \ +#define bch2_bkey_ops_dirent ((struct bkey_ops) { \ .key_invalid = bch2_dirent_invalid, \ .val_to_text = bch2_dirent_to_text, \ -} +}) struct qstr; struct file;