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
af1c6871
Commit
af1c6871
authored
Jul 21, 2018
by
Kent Overstreet
Committed by
Kent Overstreet
Oct 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: add bch_verbose() statements for shutdown
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
4077991c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
fs/bcachefs/super.c
fs/bcachefs/super.c
+4
-0
No files found.
fs/bcachefs/super.c
View file @
af1c6871
...
@@ -404,6 +404,8 @@ void bch2_fs_stop(struct bch_fs *c)
...
@@ -404,6 +404,8 @@ void bch2_fs_stop(struct bch_fs *c)
struct
bch_dev
*
ca
;
struct
bch_dev
*
ca
;
unsigned
i
;
unsigned
i
;
bch_verbose
(
c
,
"shutting down"
);
for_each_member_device
(
ca
,
c
,
i
)
for_each_member_device
(
ca
,
c
,
i
)
if
(
ca
->
kobj
.
state_in_sysfs
&&
if
(
ca
->
kobj
.
state_in_sysfs
&&
ca
->
disk_sb
.
bdev
)
ca
->
disk_sb
.
bdev
)
...
@@ -444,6 +446,8 @@ void bch2_fs_stop(struct bch_fs *c)
...
@@ -444,6 +446,8 @@ void bch2_fs_stop(struct bch_fs *c)
if
(
c
->
devs
[
i
])
if
(
c
->
devs
[
i
])
bch2_dev_free
(
rcu_dereference_protected
(
c
->
devs
[
i
],
1
));
bch2_dev_free
(
rcu_dereference_protected
(
c
->
devs
[
i
],
1
));
bch_verbose
(
c
,
"shutdown complete"
);
kobject_put
(
&
c
->
kobj
);
kobject_put
(
&
c
->
kobj
);
}
}
...
...
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