Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5270153pxj; Tue, 22 Jun 2021 20:06:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzck8jHH6odinmRM6cOcyaa+VINr8QGJiHqcFVMzT/L2BjrUHW5hbnE21JTmXGFu5MskYJr X-Received: by 2002:a6b:f815:: with SMTP id o21mr5281293ioh.137.1624417595375; Tue, 22 Jun 2021 20:06:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624417595; cv=none; d=google.com; s=arc-20160816; b=j50P1yURAzut+fQouaPxFWp2WXeVj49zGSh2/eR/YqYJpa+ln1KfSOAHRoZSYPADsY izwaobAhBDoKI0tXFqYv2u0WB1EPwOlx7NpvIpdL0ZQhk32m2oHubISHsWB2i/aw6LLX 5hTc84Pv4u6hYw5gPp/CiqjoyXMAgLeqIrsPEpPE4OB6+fTg0UBXUWvJtX+UDD/UAb2N 6QHwnex9FiNIOKHQtGeiGLi3Ldmt25sIc9Sf8i7fBeXp7vaFIM1+z1+8YGayDUyLQVx9 4p4irNbJs44Dg2RhseTK8TEkkoXkbAeZJ5auriwdV1N1t2xttiyp94u3W+h+6eqccol7 hy6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=byEjbjiEirDiK90+5NVnAMZ1oX4oz+Uuu8RpsfB3Wyg=; b=X/OFqIj38Ekcva+dWQZBl3m/84sLVpX9nu2Hs9QgstF15nq8KNCZOvAvUoiNPc5a8Y 7qAZjlEB1pPV3thu4GBk+WgizfNwOyT1uAhFew5q5unXGX3wjLqE7O/PJoC1CAH4OXrI IblvREouQdfoP18NhUn0IGSdnqYM2dQ2zLJA2hobb8qKUtykxizwugPvjL779U1IPiLE 8URElQ3JP4SFvVYe1/l2/riCLI45zczax+bEE5d2S1gQjCWM2nRMa7LwV+YHL/NyHHeB JelDngmzUzi0Q1UhWYtskFgvkmXHx4XqtpN6T5e/5gB0u+QPKay4ye0n9OIv6Sn64VIi +z7Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m4si25092209ioy.95.2021.06.22.20.06.12; Tue, 22 Jun 2021 20:06:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229890AbhFWDI1 (ORCPT + 99 others); Tue, 22 Jun 2021 23:08:27 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:58786 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229774AbhFWDI1 (ORCPT ); Tue, 22 Jun 2021 23:08:27 -0400 Received: from cwcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 15N362U4026019 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 22 Jun 2021 23:06:02 -0400 Received: by cwcc.thunk.org (Postfix, from userid 15806) id 1375015C3CD6; Tue, 22 Jun 2021 23:06:02 -0400 (EDT) Date: Tue, 22 Jun 2021 23:06:02 -0400 From: "Theodore Ts'o" To: Wang Jianchao Cc: Andreas Dilger , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, lishujin@kuaishou.com Subject: Re: [PATCH V2 5/7] ext4: get buddy cache after insert successfully Message-ID: References: <164ffa3b-c4d5-6967-feba-b972995a6dfb@gmail.com> <49382052-6238-f1fb-40d1-b6b801b39ff7@gmail.com> <48e33dea-d15e-f211-0191-e01bd3eb17b3@gmail.com> <67eeb65a-d413-c4f9-c06f-d5dcceca0e4f@gmail.com> <93458049-0d43-617a-a5e7-c7e10325443a@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <93458049-0d43-617a-a5e7-c7e10325443a@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, May 26, 2021 at 04:43:43PM +0800, Wang Jianchao wrote: > The getting of bd_bitmap_page and bd_buddy_page should be done > after insert the ext4_free_data successfully. Otherwise, nobody > can put them. > > Signed-off-by: Wang Jianchao This looks like it's a bug fix for patch 4/7 --- is that correct? If so, maybe we should fold this into the previous patch? Thanks, - Ted