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
06d493fe
Commit
06d493fe
authored
Feb 17, 2024
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: improve bch2_journal_buf_to_text()
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
29e11f96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
9 deletions
+24
-9
fs/bcachefs/journal.c
fs/bcachefs/journal.c
+24
-9
No files found.
fs/bcachefs/journal.c
View file @
06d493fe
...
...
@@ -53,33 +53,48 @@ static void bch2_journal_buf_to_text(struct printbuf *out, struct journal *j, u6
unsigned
i
=
seq
&
JOURNAL_BUF_MASK
;
struct
journal_buf
*
buf
=
j
->
buf
+
i
;
prt_
printf
(
out
,
"seq:"
);
prt_
str
(
out
,
"seq:"
);
prt_tab
(
out
);
prt_printf
(
out
,
"%llu"
,
seq
);
prt_newline
(
out
);
printbuf_indent_add
(
out
,
2
);
prt_
printf
(
out
,
"refcount:"
);
prt_
str
(
out
,
"refcount:"
);
prt_tab
(
out
);
prt_printf
(
out
,
"%u"
,
journal_state_count
(
s
,
i
));
prt_newline
(
out
);
prt_
printf
(
out
,
"size:"
);
prt_
str
(
out
,
"size:"
);
prt_tab
(
out
);
prt_human_readable_u64
(
out
,
vstruct_bytes
(
buf
->
data
));
prt_newline
(
out
);
prt_
printf
(
out
,
"expires
"
);
prt_
str
(
out
,
"expires:
"
);
prt_tab
(
out
);
prt_printf
(
out
,
"%li jiffies"
,
buf
->
expires
-
jiffies
);
prt_newline
(
out
);
prt_str
(
out
,
"flags:"
);
prt_tab
(
out
);
if
(
buf
->
noflush
)
prt_str
(
out
,
"noflush "
);
if
(
buf
->
must_flush
)
prt_str
(
out
,
"must_flush "
);
if
(
buf
->
separate_flush
)
prt_str
(
out
,
"separate_flush "
);
if
(
buf
->
need_flush_to_write_buffer
)
prt_str
(
out
,
"need_flush_to_write_buffer "
);
if
(
buf
->
need_flush_to_write_buffer
)
prt_str
(
out
,
"need_flush_to_write_buffer "
);
if
(
buf
->
write_done
)
prt_str
(
out
,
"write done "
);
if
(
buf
->
write_started
)
prt_str
(
out
,
"write started "
);
if
(
buf
->
write_allocated
)
prt_str
(
out
,
"write allocated "
);
if
(
buf
->
write_done
)
prt_printf
(
out
,
"write done
\n
"
);
else
if
(
buf
->
write_allocated
)
prt_printf
(
out
,
"write allocated
\n
"
);
else
if
(
buf
->
write_started
)
prt_printf
(
out
,
"write started
\n
"
);
prt_str
(
out
,
"write done"
);
prt_newline
(
out
);
printbuf_indent_sub
(
out
,
2
);
}
...
...
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