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
2da671dc
Commit
2da671dc
authored
2 years ago
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: Use btree_type_has_ptrs() more consistently
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
6c22eb70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
fs/bcachefs/btree_gc.c
fs/bcachefs/btree_gc.c
+1
-1
fs/bcachefs/sysfs.c
fs/bcachefs/sysfs.c
+1
-1
No files found.
fs/bcachefs/btree_gc.c
View file @
2da671dc
...
...
@@ -1963,7 +1963,7 @@ int bch2_gc_gens(struct bch_fs *c)
}
for
(
i
=
0
;
i
<
BTREE_ID_NR
;
i
++
)
if
(
(
1
<<
i
)
&
BTREE_ID_HAS_PTRS
)
{
if
(
btree_type_has_ptrs
(
i
)
)
{
struct
btree_iter
iter
;
struct
bkey_s_c
k
;
...
...
This diff is collapsed.
Click to expand it.
fs/bcachefs/sysfs.c
View file @
2da671dc
...
...
@@ -298,7 +298,7 @@ static int bch2_compression_stats_to_text(struct printbuf *out, struct bch_fs *c
bch2_trans_init
(
&
trans
,
c
,
0
,
0
);
for
(
id
=
0
;
id
<
BTREE_ID_NR
;
id
++
)
{
if
(
!
((
1U
<<
id
)
&
BTREE_ID_HAS_PTRS
))
if
(
!
btree_type_has_ptrs
(
id
))
continue
;
for_each_btree_key
(
&
trans
,
iter
,
id
,
POS_MIN
,
...
...
This diff is collapsed.
Click to expand it.
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