diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-03 15:21:45 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-05 23:24:20 -0500 |
commit | 49a5192c0e9cc1deac5130a82127b1e79db3fe20 (patch) | |
tree | 53b8c2876360c98ad29a0500200a8a546838103d /fs/bcachefs/opts.h | |
parent | 8a0dda6fd6b7af2a7aa797762148b8ecb8f47a67 (diff) | |
download | linux-stable-49a5192c0e9cc1deac5130a82127b1e79db3fe20.tar.gz linux-stable-49a5192c0e9cc1deac5130a82127b1e79db3fe20.tar.bz2 linux-stable-49a5192c0e9cc1deac5130a82127b1e79db3fe20.zip |
bcachefs: Add an option to control btree node prefetching
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/opts.h')
-rw-r--r-- | fs/bcachefs/opts.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/fs/bcachefs/opts.h b/fs/bcachefs/opts.h index a6f5185ecd67..93a24fef4214 100644 --- a/fs/bcachefs/opts.h +++ b/fs/bcachefs/opts.h @@ -458,7 +458,13 @@ enum fsck_err_opts { OPT_UINT(0, BCH_REPLICAS_MAX), \ BCH2_NO_SB_OPT, 1, \ "n", "Data written to this device will be considered\n"\ - "to have already been replicated n times") + "to have already been replicated n times") \ + x(btree_node_prefetch, u8, \ + OPT_FS|OPT_MOUNT|OPT_RUNTIME, \ + OPT_BOOL(), \ + BCH2_NO_SB_OPT, true, \ + NULL, "BTREE_ITER_PREFETCH casuse btree nodes to be\n"\ + " prefetched sequentially") struct bch_opts { #define x(_name, _bits, ...) unsigned _name##_defined:1; |