Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp157140lqa; Fri, 26 Apr 2024 18:57:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXJ2J5kv9IQprohSbi6pLoBoDaOqPXj1V1JKWNViP3bGVeDwkYTTkl7YcbXAtSnseV0H/DRuQ3wU+9tfwD9om1eEUYRsG0DNDXPZadjmQ== X-Google-Smtp-Source: AGHT+IEIVCudQ/xx9FUZ6DiTm7Z47rfXKPOHQk9cZ6YGUaJCDZW1RmOSvYEe5mvK0P3blIs8/0h2 X-Received: by 2002:a05:6808:6147:b0:3c5:f5ea:d39c with SMTP id dl7-20020a056808614700b003c5f5ead39cmr4316879oib.30.1714183044339; Fri, 26 Apr 2024 18:57:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714183044; cv=pass; d=google.com; s=arc-20160816; b=G2UgB1nvuyzHBQ3D7PZoALgxAFBl2ErDFxSFHiulrMojbSHPiR4KGWJ/G/h09bSb85 GVln3LkV+W+xzPZycylySqDQNUbegDHC6a8CSxqSIVNYmYiM1rVlopqgOqfFHAuo2vwd vEEfB3qTYZ2GSwcrzVbUBb08raa+fZSy//CvcZ2kiv7pKXpI5SiWGvJSO5lbNc8e3/Yi oBitXj4UIGYmCudW21PFPjgiBouoa9bFJ97yKNHN+0QRXSdSsFkFZ6s0d9sES7JgvFgj +8WNxnk0q6t3QLSAZUH+BKuzQYlXMEw5eCWSwwR2mknzir4VB5xMdUvccQVtFdaMT8tk gpeg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=p3+VAa1meSDpaLoJxIiyJr2zfMRmudY9x3muO0sBdsA=; fh=9tMgOD8Gaj90zu5W2oeNZr2jclHiy/R0PgfPqA9DWIM=; b=TRjhGQWUoY3BtNNEOmxPB4AGGo3p2uW02KNdkPbj17RXrQxfXR8vs2qg2zLMpr/g0Y kTm2pLZwzBc/yrTu5RB0VVgbor0sXPHqeW8TZ1vAsXK7cPodfl9fvLjsOpgv9osQ1UsW bbTOKgjAvfJn38qq5RCK7Ti9PEbcbSqqv2PBv4TziNL3Y5ixbi0Bjl+nux68XdWFHlCz I+4t6RxuxeRiWvsUFZekewObwXQjBrpaxoUevztLlT4nm5YllT4nm93dgCSBdmOvQZFs LHyb8xYvC65EzJ5bCMoZe2keHNZB1D87amd/LbC14buwJQBwZF/yBgbL18ZqR0VPYfGC QCIA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WzY9PbxT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-160864-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160864-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d1-20020a656201000000b005e456ae53cfsi16473174pgv.178.2024.04.26.18.57.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 18:57:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160864-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WzY9PbxT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-160864-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160864-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 31A59B225C9 for ; Sat, 27 Apr 2024 01:57:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 844BE38DD3; Sat, 27 Apr 2024 01:57:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WzY9PbxT" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B1AD0383A0 for ; Sat, 27 Apr 2024 01:57:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714183034; cv=none; b=ckcmfTV796Dd+TplZEQ07laaf3xP33B+H3vJ1q4y9JEUo5EGdZXocMbgnm+dtqSZDGr89XcCFKXoL4IYGN25KumI7z73oWwEIwZWO55nigZSdU5ZISudupOKnGrU74Ue8Urx5+eOHmtpokNTjOH+dFwwLMxpa6XIiTfYqLj0P1w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714183034; c=relaxed/simple; bh=fdWjS6WMAPrj8JFD6CvUfo0uqLtWVLqQkC8MSacvGoI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=D6GU73njzij+sr2CYjEdTuqJd9uzLNGrEtvMGz+rBwJ6oamRXqfE4GmDVTk3VNIjiVki5Zo4zcU7JnFV4KFk+2ou/yllVTyVhYokmI9rMOfBApKrcG7yedJ9lPRm0wen2IrWNL340fZoJiwZbfWz6cVS49/yp/yTTFFP8P+Kp8o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WzY9PbxT; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14E7CC113CD; Sat, 27 Apr 2024 01:57:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714183034; bh=fdWjS6WMAPrj8JFD6CvUfo0uqLtWVLqQkC8MSacvGoI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=WzY9PbxTo+GBJfI1r/sM5IPdFIO62ML6YdNTnue7wPZn1R20V6zQ7GaOxC/7FX/e7 RKb2Q7fTpsAVeoRTYHLGxiFiVASP05mXLPUW9YM5CkDQaVbx7waMUhQoOvYyX+KVrO YGU8pPdqoUjxlCMeeUKR5alR6WjE5NyAxVVyl3cxGS0QyC9GxuF1kxf735LYlMsGKG /PADTvTuLGSwRMMxPaYiwRqakcqcnfMQG59hR6Sq3YDBT4BIRpF3LQFzMjHHUU76u9 Li813vrWQCgHyMpEjHyvwl1YCWTxBxLABGlStCLi3I24+OpfV0MY8MqWQjT44kQzto QiXUtQXonjzkA== Message-ID: <963b9d7e-17a8-4006-8b2d-4ff77d340cc1@kernel.org> Date: Sat, 27 Apr 2024 09:57:25 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] f2fs: fix block migration when section is not aligned to pow2 To: Wu Bo , Jaegeuk Kim Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Wu Bo , Liao Yuanhong References: <20240426104156.321701-1-bo.wu@vivo.com> Content-Language: en-US From: Chao Yu Autocrypt: addr=chao@kernel.org; keydata= xsFNBFYs6bUBEADJuxYGZRMvAEySns+DKVtVQRKDYcHlmj+s9is35mtlhrLyjm35FWJY099R 6DL9bp8tAzLJOMBn9RuTsu7hbRDErCCTiyXWAsFsPkpt5jgTOy90OQVyTon1i/fDz4sgGOrL 1tUfcx4m5i5EICpdSuXm0dLsC5lFB2KffLNw/ZfRuS+nNlzUm9lomLXxOgAsOpuEVps7RdYy UEC81IYCAnweojFbbK8U6u4Xuu5DNlFqRFe/MBkpOwz4Nb+caCx4GICBjybG1qLl2vcGFNkh eV2i8XEdUS8CJP2rnp0D8DM0+Js+QmAi/kNHP8jzr7CdG5tje1WIVGH6ec8g8oo7kIuFFadO kwy6FSG1kRzkt4Ui2d0z3MF5SYgA1EWQfSqhCPzrTl4rJuZ72ZVirVxQi49Ei2BI+PQhraJ+ pVXd8SnIKpn8L2A/kFMCklYUaLT8kl6Bm+HhKP9xYMtDhgZatqOiyVV6HFewfb58HyUjxpza 1C35+tplQ9klsejuJA4Fw9y4lhdiFk8y2MppskaqKg950oHiqbJcDMEOfdo3NY6/tXHFaeN1 etzLc1N3Y0pG8qS/mehcIXa3Qs2fcurIuLBa+mFiFWrdfgUkvicSYqOimsrE/Ezw9hYhAHq4 KoW4LQoKyLbrdOBJFW0bn5FWBI4Jir1kIFHNgg3POH8EZZDWbQARAQABzRlDaGFvIFl1IDxj aGFvQGtlcm5lbC5vcmc+wsF3BBMBCgAhBQJWLOm1AhsDBQsJCAcDBRUKCQgLBRYCAwEAAh4B AheAAAoJEKTPgB1/p52Gm2MP/0zawCU6QN7TZuJ8R1yfdhYr0cholc8ZuPoGim69udQ3otet wkTNARnpuK5FG5la0BxFKPlazdgAU1pt+dTzCTS6a3/+0bXYQ5DwOeBPRWeFFklm5Frmk8sy wSTxxEty0UBMjzElczkJflmCiDfQunBpWGy9szn/LZ6jjIVK/BiR7CgwXTdlvKcCEk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um2aU3Gh0CD1p8+FYlG1dGhO5boTIUsR 6ho73ZNk1bwUj/wOcqWu+ZdnQa3zbfvMI9o/kFlOu8iTGlD8sNjJK+Y/fPK3znFqoqqKmSFZ aiRALjAZH6ufspvYAJEJE9eZSX7Rtdyt30MMHQARAQABwsFfBBgBCgAJBQJWLOm1AhsMAAoJ EKTPgB1/p52GPpoP/2LOn/5KSkGHGmdjzRoQHBTdm2YV1YwgADg52/mU68Wo6viStZqcVEnX 3ALsWeETod3qeBCJ/TR2C6hnsqsALkXMFFJTX8aRi/E4WgBqNvNgAkWGsg5XKB3JUoJmQLqe CGVCT1OSQA/gTEfB8tTZAGFwlw1D3W988CiGnnRb2EEqU4pEuBoQir0sixJzFWybf0jjEi7P pODxw/NCyIf9GNRNYByUTVKnC7C51a3b1gNs10aTUmRfQuu+iM5yST5qMp4ls/yYl5ybr7N1 zSq9iuL13I35csBOn13U5NE67zEb/pCFspZ6ByU4zxChSOTdIJSm4/DEKlqQZhh3FnVHh2Ld eG/Wbc1KVLZYX1NNbXTz7gBlVYe8aGpPNffsEsfNCGsFDGth0tC32zLT+5/r43awmxSJfx2P 5aGkpdszvvyZ4hvcDfZ7U5CBItP/tWXYV0DDl8rCFmhZZw570vlx8AnTiC1v1FzrNfvtuxm3 92Qh98hAj3cMFKtEVbLKJvrc2AO+mQlS7zl1qWblEhpZnXi05S1AoT0gDW2lwe54VfT3ySon 8Klpbp5W4eEoY21tLwuNzgUMxmycfM4GaJWNCncKuMT4qGVQO9SPFs0vgUrdBUC5Pn5ZJ46X mZA0DUz0S8BJtYGI0DUC/jAKhIgy1vAx39y7sAshwu2VILa71tXJ In-Reply-To: <20240426104156.321701-1-bo.wu@vivo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2024/4/26 18:41, Wu Bo wrote: > As for zoned-UFS, f2fs section size is forced to zone size. And zone > size may not aligned to pow2. > > Fixes: 859fca6b706e ("f2fs: swap: support migrating swapfile in aligned write mode") > Signed-off-by: Liao Yuanhong > Signed-off-by: Wu Bo Reviewed-by: Chao Yu Thanks,