From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0.herbolt.com (mx0.herbolt.com [5.59.97.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C3782BEC45 for ; Mon, 9 Mar 2026 18:08:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.59.97.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773079735; cv=none; b=OKLqgl2XdmsQbDxMQHM8AfuDJ/LwRu6kpsBNoaOOUilZfXHT78+wH0GrzDILKrBzpWrHwX0uipMJKln4Br772MiTSaA5b6/sHfToMwkUowBKECm6TMyu931e6Cr/VvNonR0JpUb1BpPIt1zwAWa0ZyJ9L0XjDdmx+W1q+C24ayg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773079735; c=relaxed/simple; bh=5e61FGdTKFWzwwXd37zfObaZ7O1U1d7+PGufJKnsuNE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uQUEW32o0ENgkQTeY9MKIRpBxoZoMTdRLE2DQzsWFl/jn5EC2kdLG7Rq3SOAb0xddigNBUPYillMOb5UkEeR8qbol94f53YXdQGKZ5TI86BHvrZkODVI8TAJhgvqJ1aQE3H2lOqJkUyFiL5tZVgUH0tXoo4zGxi89GQ8Wz/a9uM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=herbolt.com; spf=pass smtp.mailfrom=herbolt.com; arc=none smtp.client-ip=5.59.97.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=herbolt.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=herbolt.com Received: from mx0.herbolt.com (localhost [127.0.0.1]) by mx0.herbolt.com (Postfix) with ESMTP id C8C51180F243; Mon, 09 Mar 2026 19:08:39 +0100 (CET) Received: from trufa.intra.herbolt.com ([172.168.31.30]) by mx0.herbolt.com with ESMTPSA id 8vDcK6cMr2k66h0AKEJqOA (envelope-from ); Mon, 09 Mar 2026 19:08:39 +0100 From: Lukas Herbolt To: linux-xfs@vger.kernel.org Cc: cem@kernel.org, hch@infradead.org, djwong@kernel.org, p.raghav@samsung.com Subject: [PATCH 0/2] Addadd FALLOC_FL_WRITE_ZEROES support to xfs Date: Mon, 9 Mar 2026 19:07:07 +0100 Message-ID: <20260309180708.427553-2-lukas@herbolt.com> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-xfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This is addtion of the FALLOC_FL_WRITE_ZEROES into the XFS. As suggested this is split into two patches firts one introduce the bmapi_flags for xfs_alloc_file_space. Second patch implements the FALLOC_FL_WRITE_ZEROES doing it in two steps, first preallocates and then converts it to zeroed. Sending first patch as v0 and second as v11 to make the changes visible. The first patch is just changes to Doing the tho phase allocation t Lukas Herbolt (2): xfs: Introduce 'bmapi_flags' parameter to xfs_alloc_file_space() xfs: add FALLOC_FL_WRITE_ZEROES to XFS code base fs/xfs/xfs_bmap_util.c | 5 +++-- fs/xfs/xfs_bmap_util.h | 2 +- fs/xfs/xfs_file.c | 47 ++++++++++++++++++++++++++++++------------ 3 files changed, 38 insertions(+), 16 deletions(-) -- 2.53.0