mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
bcachefs: Put inline data behind a mount option for now
Inline data extents + reflink is still broken Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
ba239c954e
commit
07358a82bb
@ -1224,7 +1224,8 @@ void bch2_write(struct closure *cl)
|
||||
data_len = min_t(u64, bio->bi_iter.bi_size,
|
||||
op->new_i_size - (op->pos.offset << 9));
|
||||
|
||||
if (data_len <= min(block_bytes(c) / 2, 1024U)) {
|
||||
if (c->opts.inline_data &&
|
||||
data_len <= min(block_bytes(c) / 2, 1024U)) {
|
||||
bch2_write_data_inline(op, data_len);
|
||||
return;
|
||||
}
|
||||
|
@ -181,6 +181,11 @@ enum opt_type {
|
||||
OPT_BOOL(), \
|
||||
BCH_SB_128_BIT_MACS, false, \
|
||||
NULL, "Store full 128 bits of cryptographic MACs, instead of 80")\
|
||||
x(inline_data, u8, \
|
||||
OPT_MOUNT|OPT_RUNTIME, \
|
||||
OPT_BOOL(), \
|
||||
NO_SB_OPT, false, \
|
||||
NULL, "Enable inline data extents") \
|
||||
x(acl, u8, \
|
||||
OPT_FORMAT|OPT_MOUNT, \
|
||||
OPT_BOOL(), \
|
||||
|
Loading…
x
Reference in New Issue
Block a user