diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-12-04 20:07:19 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:18 -0400 |
commit | 2430e72f42778a9448ff386686856b61b49f5074 (patch) | |
tree | e24bdbedd9ff95a5c6d165e5feceeae4094d3440 /fs/bcachefs/opts.h | |
parent | 92d2ec10926d2ba8c38ba0ecada69cfd7a4dd3c4 (diff) | |
download | lwn-2430e72f42778a9448ff386686856b61b49f5074.tar.gz lwn-2430e72f42778a9448ff386686856b61b49f5074.zip |
bcachefs: Convert journal sysfs params to regular options
This converts journal_write_delay, journal_flush_disabled, and
journal_reclaim_delay to normal filesystems options, and also adds them
to the superblock.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/opts.h')
-rw-r--r-- | fs/bcachefs/opts.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/fs/bcachefs/opts.h b/fs/bcachefs/opts.h index 896b8c9c1180..187cb37cba2a 100644 --- a/fs/bcachefs/opts.h +++ b/fs/bcachefs/opts.h @@ -257,13 +257,23 @@ enum opt_type { OPT_BOOL(), \ NO_SB_OPT, false, \ NULL, "Extra debugging information during mount/recovery")\ + x(journal_flush_delay, u32, \ + OPT_MOUNT|OPT_RUNTIME, \ + OPT_UINT(0, U32_MAX), \ + BCH_SB_JOURNAL_FLUSH_DELAY, 1000, \ + NULL, "Delay in milliseconds before automatic journal commits")\ x(journal_flush_disabled, u8, \ OPT_MOUNT|OPT_RUNTIME, \ OPT_BOOL(), \ - NO_SB_OPT, false, \ + BCH_SB_JOURNAL_FLUSH_DISABLED,false, \ NULL, "Disable journal flush on sync/fsync\n" \ "If enabled, writes can be lost, but only since the\n"\ "last journal write (default 1 second)") \ + x(journal_reclaim_delay, u32, \ + OPT_MOUNT|OPT_RUNTIME, \ + OPT_UINT(0, U32_MAX), \ + BCH_SB_JOURNAL_RECLAIM_DELAY, 100, \ + NULL, "Delay in milliseconds before automatic journal reclaim")\ x(fsck, u8, \ OPT_MOUNT, \ OPT_BOOL(), \ |