mirror of
https://github.com/torvalds/linux
synced 2024-10-04 02:10:58 +00:00
bcachefs: Add an O_DIRECT option (for userspace)
Sometimes we see IO errors due to O_DIRECT alignment issues - having an option to use buffered IO will be helpful. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
parent
01eed77178
commit
91f1b9fdd2
|
@ -346,6 +346,11 @@ enum opt_type {
|
|||
OPT_BOOL(), \
|
||||
BCH2_NO_SB_OPT, false, \
|
||||
NULL, "Don't open device in exclusive mode") \
|
||||
x(direct_io, u8, \
|
||||
OPT_FS|OPT_MOUNT, \
|
||||
OPT_BOOL(), \
|
||||
BCH2_NO_SB_OPT, true, \
|
||||
NULL, "Use O_DIRECT (userspace only)") \
|
||||
x(sb, u64, \
|
||||
OPT_MOUNT, \
|
||||
OPT_UINT(0, S64_MAX), \
|
||||
|
|
Loading…
Reference in a new issue