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
fe5eddc0
Commit
fe5eddc0
authored
Feb 24, 2024
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: Kill bch2_fs_usage_to_text()
Dead code. Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
8bb8d683
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
42 deletions
+0
-42
fs/bcachefs/buckets.c
fs/bcachefs/buckets.c
+0
-39
fs/bcachefs/buckets.h
fs/bcachefs/buckets.h
+0
-3
No files found.
fs/bcachefs/buckets.c
View file @
fe5eddc0
...
@@ -32,45 +32,6 @@ void bch2_dev_usage_read_fast(struct bch_dev *ca, struct bch_dev_usage *usage)
...
@@ -32,45 +32,6 @@ void bch2_dev_usage_read_fast(struct bch_dev *ca, struct bch_dev_usage *usage)
acc_u64s_percpu
((
u64
*
)
usage
,
(
u64
__percpu
*
)
ca
->
usage
,
dev_usage_u64s
());
acc_u64s_percpu
((
u64
*
)
usage
,
(
u64
__percpu
*
)
ca
->
usage
,
dev_usage_u64s
());
}
}
void
bch2_fs_usage_to_text
(
struct
printbuf
*
out
,
struct
bch_fs
*
c
,
struct
bch_fs_usage_online
*
fs_usage
)
{
unsigned
i
;
prt_printf
(
out
,
"capacity:
\t\t\t
%llu
\n
"
,
c
->
capacity
);
prt_printf
(
out
,
"hidden:
\t\t\t\t
%llu
\n
"
,
fs_usage
->
u
.
b
.
hidden
);
prt_printf
(
out
,
"data:
\t\t\t\t
%llu
\n
"
,
fs_usage
->
u
.
b
.
data
);
prt_printf
(
out
,
"cached:
\t\t\t\t
%llu
\n
"
,
fs_usage
->
u
.
b
.
cached
);
prt_printf
(
out
,
"reserved:
\t\t\t
%llu
\n
"
,
fs_usage
->
u
.
b
.
reserved
);
prt_printf
(
out
,
"nr_inodes:
\t\t\t
%llu
\n
"
,
fs_usage
->
u
.
b
.
nr_inodes
);
prt_printf
(
out
,
"online reserved:
\t\t
%llu
\n
"
,
fs_usage
->
online_reserved
);
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
fs_usage
->
u
.
persistent_reserved
);
i
++
)
{
prt_printf
(
out
,
"%u replicas:
\n
"
,
i
+
1
);
prt_printf
(
out
,
"
\t
reserved:
\t\t
%llu
\n
"
,
fs_usage
->
u
.
persistent_reserved
[
i
]);
}
for
(
i
=
0
;
i
<
c
->
replicas
.
nr
;
i
++
)
{
struct
bch_replicas_entry_v1
*
e
=
cpu_replicas_entry
(
&
c
->
replicas
,
i
);
prt_printf
(
out
,
"
\t
"
);
bch2_replicas_entry_to_text
(
out
,
e
);
prt_printf
(
out
,
":
\t
%llu
\n
"
,
fs_usage
->
u
.
replicas
[
i
]);
}
}
static
u64
reserve_factor
(
u64
r
)
static
u64
reserve_factor
(
u64
r
)
{
{
return
r
+
(
round_up
(
r
,
(
1
<<
RESERVE_FACTOR
))
>>
RESERVE_FACTOR
);
return
r
+
(
round_up
(
r
,
(
1
<<
RESERVE_FACTOR
))
>>
RESERVE_FACTOR
);
...
...
fs/bcachefs/buckets.h
View file @
fe5eddc0
...
@@ -298,9 +298,6 @@ static inline unsigned dev_usage_u64s(void)
...
@@ -298,9 +298,6 @@ static inline unsigned dev_usage_u64s(void)
return
sizeof
(
struct
bch_dev_usage
)
/
sizeof
(
u64
);
return
sizeof
(
struct
bch_dev_usage
)
/
sizeof
(
u64
);
}
}
void
bch2_fs_usage_to_text
(
struct
printbuf
*
,
struct
bch_fs
*
,
struct
bch_fs_usage_online
*
);
u64
bch2_fs_sectors_used
(
struct
bch_fs
*
,
struct
bch_fs_usage_online
*
);
u64
bch2_fs_sectors_used
(
struct
bch_fs
*
,
struct
bch_fs_usage_online
*
);
struct
bch_fs_usage_short
struct
bch_fs_usage_short
...
...
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