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
fe112812
Commit
fe112812
authored
Jan 24, 2019
by
Kent Overstreet
Committed by
Kent Overstreet
Oct 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: sysfs trigger for bch2_alloc_write
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
eac3ca0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
fs/bcachefs/sysfs.c
fs/bcachefs/sysfs.c
+8
-0
No files found.
fs/bcachefs/sysfs.c
View file @
fe112812
...
@@ -133,6 +133,7 @@ do { \
...
@@ -133,6 +133,7 @@ do { \
write_attribute
(
trigger_journal_flush
);
write_attribute
(
trigger_journal_flush
);
write_attribute
(
trigger_btree_coalesce
);
write_attribute
(
trigger_btree_coalesce
);
write_attribute
(
trigger_gc
);
write_attribute
(
trigger_gc
);
write_attribute
(
trigger_alloc_write
);
write_attribute
(
prune_cache
);
write_attribute
(
prune_cache
);
rw_attribute
(
btree_gc_periodic
);
rw_attribute
(
btree_gc_periodic
);
...
@@ -495,6 +496,12 @@ STORE(__bch2_fs)
...
@@ -495,6 +496,12 @@ STORE(__bch2_fs)
if
(
attr
==
&
sysfs_trigger_gc
)
if
(
attr
==
&
sysfs_trigger_gc
)
bch2_gc
(
c
,
NULL
,
false
);
bch2_gc
(
c
,
NULL
,
false
);
if
(
attr
==
&
sysfs_trigger_alloc_write
)
{
bool
wrote
;
bch2_alloc_write
(
c
,
false
,
&
wrote
);
}
if
(
attr
==
&
sysfs_prune_cache
)
{
if
(
attr
==
&
sysfs_prune_cache
)
{
struct
shrink_control
sc
;
struct
shrink_control
sc
;
...
@@ -587,6 +594,7 @@ struct attribute *bch2_fs_internal_files[] = {
...
@@ -587,6 +594,7 @@ struct attribute *bch2_fs_internal_files[] = {
&
sysfs_trigger_journal_flush
,
&
sysfs_trigger_journal_flush
,
&
sysfs_trigger_btree_coalesce
,
&
sysfs_trigger_btree_coalesce
,
&
sysfs_trigger_gc
,
&
sysfs_trigger_gc
,
&
sysfs_trigger_alloc_write
,
&
sysfs_prune_cache
,
&
sysfs_prune_cache
,
&
sysfs_copy_gc_enabled
,
&
sysfs_copy_gc_enabled
,
...
...
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