Whamcloud - gitweb
LU-17055 ldiskfs: add falloc(zero) for OST/ext 63/57763/6
authorKeguang Xu <squalfof@gmail.com>
Wed, 15 Jan 2025 05:57:30 +0000 (13:57 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 10 Apr 2025 06:53:55 +0000 (06:53 +0000)
commitf57455ffa2871ab31a3e8f3a78e0f5e3b9110586
treea6fd93f27b007215984fcb42bead2bb11c21c2c8
parent904a7f1e8396eaa4bb969ccf0214ac0591f8887e
LU-17055 ldiskfs: add falloc(zero) for OST/ext

This patch implements falloc(FALLOC_FL_ZERO_RANGE)
on the ldiskfs backend.

Here, we just follow the implementation of "LU-10048 osd:
async truncate" where we as well execute zeroing outside
of main transaction handle, to avoids restarting zeroing
transaction handles in main transaction.

NOTE: this is the 1st part of falloc(zero) where it functions
only on ldiskfs-extend. To address DoM/indirect part another
patch will be added.

Signed-off-by: Keguang Xu <squalfof@gmail.com>
Change-Id: I76310546715f96872bf4dd441beb453ee4ac0abe
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57763
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Qian Yingjin <qian@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/file.c
lustre/mdc/mdc_dev.c
lustre/mdt/mdt_io.c
lustre/ofd/ofd_dev.c
lustre/osc/osc_io.c
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_io.c
lustre/tests/sanity.sh