Whamcloud - gitweb
LU-10026 osd-ldiskfs: use preallocation for dense writes 71/50171/30
authorAlex Zhuravlev <bzzz@whamcloud.com>
Wed, 1 Mar 2023 18:28:25 +0000 (21:28 +0300)
committerAlex Zhuravlev <bzzz@whamcloud.com>
Mon, 28 Aug 2023 13:17:19 +0000 (13:17 +0000)
commit986340bcdfa572a1f6bab34014e0474c89f47691
tree158bb5573affd45a4f5bd6a56fb305d8e78ef490
parent33e4d86a480b860e0a3b4b51c7c6da6ec0159e51
LU-10026 osd-ldiskfs: use preallocation for dense writes

use inode's preallocation chunks as per-inode group preallocation:
just grab the very first available blocks from the window.

TODO: add a test. at the moment not sure how to deal with potentially
fragmented filesystem, not easy to guarantee specific allocation
pattern.

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I9d36701f569f4c6305bc46f3373bfc054fcd61a9
ldiskfs/kernel_patches/patches/rhel8/ext4-mballoc-dense.patch [new file with mode: 0644]
ldiskfs/kernel_patches/series/ldiskfs-4.18-rhel8.7.series
lustre/include/obd_support.h
lustre/osc/osc_request.c
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_io.c
lustre/osd-ldiskfs/osd_lproc.c
lustre/tests/sanity-compr.sh