aboutsummaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/btree_trans_commit.c
diff options
context:
space:
mode:
authorPankaj Raghav <[email protected]>2024-06-14 10:50:31 +0000
committerKent Overstreet <[email protected]>2024-07-14 23:00:15 +0000
commitfebc33cb352afb8c8dc87286635c35cc644fbdb9 (patch)
tree8567a290fd2692df2cc73695e90a9b77e27ff085 /fs/bcachefs/btree_trans_commit.c
parentbcachefs: use FGP_WRITEBEGIN instead of combining individual flags (diff)
downloadkernel-febc33cb352afb8c8dc87286635c35cc644fbdb9.tar.gz
kernel-febc33cb352afb8c8dc87286635c35cc644fbdb9.zip
bcachefs: set fgf order hint before starting a buffered write
Set the preferred folio order in the fgp_flags by calling fgf_set_order(). Page cache will try to allocate large folio of the preferred order whenever possible instead of allocating multiple 0 order folios. This improves the buffered write performance up to 1.25x with default mount options and up to 1.57x when mounted with no_data_io option with the following fio workload: fio --name=bcachefs --filename=/mnt/test --size=100G \ --ioengine=io_uring --iodepth=16 --rw=write --bs=128k Signed-off-by: Pankaj Raghav <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'fs/bcachefs/btree_trans_commit.c')
0 files changed, 0 insertions, 0 deletions