Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
a4461c8a
Commit
a4461c8a
authored
Jul 16, 2019
by
Kent Overstreet
Committed by
Kent Overstreet
Oct 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: Print out name of bkey type
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
0c04f5eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
fs/bcachefs/bkey_methods.c
fs/bcachefs/bkey_methods.c
+3
-4
fs/bcachefs/bkey_methods.h
fs/bcachefs/bkey_methods.h
+1
-1
No files found.
fs/bcachefs/bkey_methods.c
View file @
a4461c8a
...
...
@@ -12,7 +12,7 @@
#include "quota.h"
#include "xattr.h"
const
char
*
const
bch_bkey_types
[]
=
{
const
char
*
const
bch
2
_bkey_types
[]
=
{
#define x(name, nr) #name,
BCH_BKEY_TYPES
()
#undef x
...
...
@@ -159,7 +159,8 @@ void bch2_bpos_to_text(struct printbuf *out, struct bpos pos)
void
bch2_bkey_to_text
(
struct
printbuf
*
out
,
const
struct
bkey
*
k
)
{
pr_buf
(
out
,
"u64s %u type %u "
,
k
->
u64s
,
k
->
type
);
pr_buf
(
out
,
"u64s %u type %s "
,
k
->
u64s
,
bch2_bkey_types
[
k
->
type
]);
bch2_bpos_to_text
(
out
,
k
->
p
);
...
...
@@ -174,8 +175,6 @@ void bch2_val_to_text(struct printbuf *out, struct bch_fs *c,
if
(
likely
(
ops
->
val_to_text
))
ops
->
val_to_text
(
out
,
c
,
k
);
else
pr_buf
(
out
,
" %s"
,
bch_bkey_types
[
k
.
k
->
type
]);
}
void
bch2_bkey_val_to_text
(
struct
printbuf
*
out
,
struct
bch_fs
*
c
,
...
...
fs/bcachefs/bkey_methods.h
View file @
a4461c8a
...
...
@@ -9,7 +9,7 @@ struct btree;
struct
bkey
;
enum
btree_node_type
;
extern
const
char
*
const
bch_bkey_types
[];
extern
const
char
*
const
bch
2
_bkey_types
[];
enum
merge_result
{
BCH_MERGE_NOMERGE
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment