diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-07-05 22:18:07 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:08 -0400 |
commit | d5bee8ca5a118f352dc81f2452ac41dcaf5100c5 (patch) | |
tree | fad167582862d32ff51555c37b8ab167308b380a /fs/bcachefs/dirent.c | |
parent | c21affdd06661c8eb73c71fc54cdb8ec921b968f (diff) | |
download | linux-d5bee8ca5a118f352dc81f2452ac41dcaf5100c5.tar.gz linux-d5bee8ca5a118f352dc81f2452ac41dcaf5100c5.tar.bz2 linux-d5bee8ca5a118f352dc81f2452ac41dcaf5100c5.zip |
bcachefs: bch2_d_types[]
Add readable names for d_type, and use it in dirent_to_text().
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/dirent.c')
-rw-r--r-- | fs/bcachefs/dirent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/dirent.c b/fs/bcachefs/dirent.c index 3bf6379cefe6..d5883ab7de21 100644 --- a/fs/bcachefs/dirent.c +++ b/fs/bcachefs/dirent.c @@ -112,7 +112,7 @@ void bch2_dirent_to_text(struct printbuf *out, struct bch_fs *c, bch_scnmemcpy(out, d.v->d_name, bch2_dirent_name_bytes(d)); - pr_buf(out, " -> %llu type %u", d.v->d_inum, d.v->d_type); + pr_buf(out, " -> %llu type %s", d.v->d_inum, bch2_d_types[d.v->d_type]); } static struct bkey_i_dirent *dirent_create_key(struct btree_trans *trans, |