From patchwork Sun Feb 4 05:15:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Theodore Ts'o X-Patchwork-Id: 196425 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp203971dyb; Sat, 3 Feb 2024 21:15:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IGCQp7Zr7wBz3mMG8GEghP0FWNbAOVvsVw12hk364sLDDfBW1TcwrxDqtp8teeeZysFGAGo X-Received: by 2002:ac8:470a:0:b0:42b:e38c:f8c5 with SMTP id f10-20020ac8470a000000b0042be38cf8c5mr2784622qtp.42.1707023751773; Sat, 03 Feb 2024 21:15:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707023751; cv=pass; d=google.com; s=arc-20160816; b=iaPXAWSo+poOus2uJcRGDLb5iiyj3oZspURZGI3cOaGQRdyiyHI/XDNfejlvDkKopC 85boj7OSVWqUcea+384qAPhYafDQHIpe/TNC4KuEmLTz9lOS+QN7t3FhTv/c7b27+sHJ IciJbHDFFaMzTujEgOkgYl/ct90TQmkPwdygYNBhBnTc8oCXPMl7VRPCfegUFlRMoiOb jlG5sZalZ1uG79Q71OLMQUIqrcO3Rd6jrxZ7Lr42QTSF9ggq3Oj0dcT8vD3EDRkybelR ezjHvs9LDN69cSvvlO7K0SB4EdHdd9eXvjKlhu1vFyhSxKYQDFBoDM8twr6gUviK5Hev eurw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=3GSeuIDQxaZam0abvCGZGnkGb3dP6aSsbWbXsXQ7sFo=; fh=XMIrxctu639663a0TxtwxbsW+OSJgPQniZZEZFcCcH4=; b=T73Atjfl2bprBbbs4U5abnxJWjZWC+/YBdLldiHKiI9Qq61W+aV7L0riXwobVtBsKh dBXDW7togABxox3Hn0Wl3LcA322dRBKbtHJaceLhqumnkctoIVxE1/CEKIZQ/Fx6NtSD eitOc1LCoIRhkzjHSmghsvjS0MjLRc+Y4gc1bceKQOM5a8rzzMrS/I77rze4qAUOBuau 27aPNocFnNPlaBn+eUQNfA4seneexLvTHmMFajqR0G9xypcRmvPhBreonnQ4+Bd122IQ y9gqVMrjb+yZiqQyEP/PGP3vwDnpxTopyB9eiBxrFlFw8JyK0/DwODy5KAjdUvucqxtx mlDg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mit.edu header.s=outgoing header.b=d7sDOq+D; arc=pass (i=1 spf=pass spfdomain=mit.edu dkim=pass dkdomain=mit.edu dmarc=pass fromdomain=mit.edu); spf=pass (google.com: domain of linux-kernel+bounces-51434-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51434-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mit.edu X-Forwarded-Encrypted: i=1; AJvYcCVeDRS0WZ7ibu3mlDgx65nxA2fXd6m5jrhSoJyGEvq0MBIlU19qLcBLv9yJ9RmEywXfl9otST12q6P1Wjn69UNjLvOcZg== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id z18-20020a05622a061200b0042aaef0938bsi5716220qta.694.2024.02.03.21.15.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 21:15:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51434-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@mit.edu header.s=outgoing header.b=d7sDOq+D; arc=pass (i=1 spf=pass spfdomain=mit.edu dkim=pass dkdomain=mit.edu dmarc=pass fromdomain=mit.edu); spf=pass (google.com: domain of linux-kernel+bounces-51434-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51434-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mit.edu Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8F85E1C215F0 for ; Sun, 4 Feb 2024 05:15:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D900479E0; Sun, 4 Feb 2024 05:15:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mit.edu header.i=@mit.edu header.b="d7sDOq+D" Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) (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 47CFD613C for ; Sun, 4 Feb 2024 05:15:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=18.9.28.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707023735; cv=none; b=eyf8JY+NKhIfaZf49DTDh91tT3Yo+NaWRkdefLnuOk+AYlE9D4GlZq9hRkqHKhELjOmmRvSazQmPO3jatydzS7JnIRKvWrCZrxLVQDNQRn8pjvBgbC72O3kiwgeYX6P0KF6bafiS+jsjHZPc5dFuntyKyORY87Ns8CBSGQuuHmg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707023735; c=relaxed/simple; bh=xFmlI7vywnpnkwopJt9hfOdzW2XX4SrrGwOuJsKfjAo=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=telFChIi2DvujtnJRFv8jarXsCZuyZcZHnhV5vZFfldO0tclLqVjyrN8yb+ykpTWebhAeoRdYrZ/qI83viUz2JpmUzyvo7y0Dsp9iWbsq9X3GIMb1pRuCVeFoZ8+MjtUgLik3QRQ1ewLMGkpxPxMPz4c4CxRVhInwmy1QKSDIlI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mit.edu; spf=pass smtp.mailfrom=mit.edu; dkim=pass (2048-bit key) header.d=mit.edu header.i=@mit.edu header.b=d7sDOq+D; arc=none smtp.client-ip=18.9.28.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mit.edu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mit.edu Received: from cwcc.thunk.org (pool-173-48-82-236.bstnma.fios.verizon.net [173.48.82.236]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 4145FOJY022461 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 4 Feb 2024 00:15:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing; t=1707023726; bh=3GSeuIDQxaZam0abvCGZGnkGb3dP6aSsbWbXsXQ7sFo=; h=Date:From:Subject:Message-ID:MIME-Version:Content-Type; b=d7sDOq+DtafdLu+k31UgVAK8y5QHZeipM1DujG3nj2HzLrfh5ssb1SJtC78rIlNH2 I2Mi6Qcg3U8CTWR67h/ebfQS4RSIOjnEh53mPFVrYCFPJR1W4yWT+u+MVS52gzu85J h+eWktTajVLKerR+xE/Vabt38TX780PeFUURPY5chC/gysLV9E1uWNlHfJzA+zXW7u 2CqVtmefKY1oXuud41OPCQzjCUEF0nuz5Dp3y3W8mieUYLXb5pIF2NaMIC3SGc+2op kgro7AhXiNhw0FtlVG1nKeh+JCPYLGghqFaSBnJTAY5amsNNbr5dnn41FXoJCmfAbW pHgQTEuTUA02Q== Received: by cwcc.thunk.org (Postfix, from userid 15806) id A584B15C02FD; Sun, 4 Feb 2024 00:15:24 -0500 (EST) Date: Sun, 4 Feb 2024 00:15:24 -0500 From: "Theodore Ts'o" To: Linus Torvalds Cc: Ext4 Developers List , Linux Kernel Developers List Subject: [GIT PULL] ext4 bug fixes for v6.8-rc3 Message-ID: <20240204051524.GA206753@mit.edu> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789944137690520796 X-GMAIL-MSGID: 1789944137690520796 The following changes since commit 0d19d9e14687ff6f43d6c4806ace9ff682d7703f: Merge tag 'ext4_for_linus-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 (2024-01-10 16:09:14 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git tags/for-linus-6.8-rc3 for you to fetch changes up to ec9d669eba4c276d00af88951947fe0e82a6b84c: ext4: make ext4_set_iomap() recognize IOMAP_DELALLOC map type (2024-02-01 23:59:21 -0500) ---------------------------------------------------------------- Miscellaneous bug fixes and cleanups in ext4's multi-block allocator and extent handling code. ---------------------------------------------------------------- Baokun Li (8): ext4: fix double-free of blocks due to wrong extents moved_len ext4: do not trim the group with corrupted block bitmap ext4: regenerate buddy after block freeing failed if under fc replay ext4: avoid bb_free and bb_fragments inconsistency in mb_free_blocks() ext4: avoid dividing by 0 in mb_update_avg_fragment_size() when block bitmap corrupt ext4: avoid allocating blocks from corrupted group in ext4_mb_try_best_found() ext4: avoid allocating blocks from corrupted group in ext4_mb_find_by_goal() ext4: mark the group block bitmap as corrupted before reporting an error Kemeng Shi (9): ext4: remove unused return value of __mb_check_buddy ext4: remove unused parameter ngroup in ext4_mb_choose_next_group_*() ext4: remove unneeded return value of ext4_mb_release_context ext4: remove unused ext4_allocation_context::ac_groups_considered ext4: remove unused return value of ext4_mb_release ext4: remove unused return value of ext4_mb_release_inode_pa ext4: remove unused return value of ext4_mb_release_group_pa ext4: remove unnecessary parameter "needed" in ext4_discard_preallocations ext4: remove 'needed' in trace_ext4_discard_preallocations Zhang Yi (6): ext4: refactor ext4_da_map_blocks() ext4: convert to exclusive lock while inserting delalloc extents ext4: correct the hole length returned by ext4_map_blocks() ext4: add a hole extent entry in cache after punch ext4: make ext4_map_blocks() distinguish delalloc only extent ext4: make ext4_set_iomap() recognize IOMAP_DELALLOC map type fs/ext4/ext4.h | 8 +-- fs/ext4/extents.c | 124 ++++++++++++++++++++++++++++----------------- fs/ext4/file.c | 2 +- fs/ext4/indirect.c | 2 +- fs/ext4/inode.c | 90 +++++++++++---------------------- fs/ext4/ioctl.c | 2 +- fs/ext4/mballoc.c | 140 ++++++++++++++++++++++++++++----------------------- fs/ext4/mballoc.h | 1 - fs/ext4/move_extent.c | 10 ++-- fs/ext4/super.c | 2 +- include/trace/events/ext4.h | 11 ++-- 11 files changed, 203 insertions(+), 189 deletions(-)