Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5690006pxv; Wed, 28 Jul 2021 17:39:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzn8F0V15L4MRiDHiJ03xlkuOic+Q3uIgG4qmgAQpmMAK8pbCxebiofCEWmSiyaZAgF3/p5 X-Received: by 2002:a05:6e02:1b8f:: with SMTP id h15mr1674086ili.37.1627519198284; Wed, 28 Jul 2021 17:39:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627519198; cv=none; d=google.com; s=arc-20160816; b=sTckT1Ua0x1HqLrPTfq83FhkI3nYB/6nCBuMQXTCFGNwxzUu5Qxfr1JlJwVJj0Lywe 3MBNXtn90+BQCIIOQ8gopRn1X8SmytXat39pxSIsFkbyA6cM9jUxH5K2oaNhxq8f/3KM tjZHHg+t1IaoSKBGVm4wQnz7fkPEoYIKpiYzg+jYO1mBkTGosW1mJ/9OoIfNoSSZoqlL yREg4irbujYAOU5RTe5cGueaFNFCgr9GbJhbgea1lJUQhE9v2lUD4VGDrs0XFNxlG3CB a30jizsOLZCOCz88uGNFRLut4uurEKjjhnBywyRbte45CUDZN02XBkJnwYZS4KZBeoOI 1m8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=qqWw+vA0vUKlaNP16C5Qr9XxtQOKXd8xnAmGappybWY=; b=UK0fQXZ+1N83iYRtuwbWr4Ms4Qwg0Plpj4/iMzWvp+4RoBw70rncFuuACm5Rlj+Heb VbIvmNE+ogDIMbkjIZUvuT8o/GiNLvGzTcT+OIWgI7Z0mbymEI4Yxe9fWWJza2ogKSse z3lhLCpxDW3EenvlUzIbOoHEIYM10f/zgZbrhRhBOqKWr0oEc+bFYMCeuzQvrX/aqlCH LrcDopM0hzuI5957jjtrbr9HSUDRRsGBcFAM+21omfQF9fFN+hCeDah4oTi5UMT+cIn0 w51OALBBUamgmpK3bylthhE0CLguz7kVRiaXm6FIi03prWp2/eM1b7wQuy74Ko+R380C uVXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W+nFlplc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n12si1509345ilq.134.2021.07.28.17.39.45; Wed, 28 Jul 2021 17:39:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W+nFlplc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233017AbhG2Ahb (ORCPT + 99 others); Wed, 28 Jul 2021 20:37:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:44874 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232869AbhG2Aha (ORCPT ); Wed, 28 Jul 2021 20:37:30 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 95B616103B; Thu, 29 Jul 2021 00:37:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627519047; bh=HKuJ/sGTGEoDM22RJYLhczo7YamW8A07HkBki046ZPs=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=W+nFlplcDkxPtR6FK3U73kf6y7ker+0HsuiHS9wyd/pPFKIAJmkEnT2usx4ttscK8 Ut3KSQ8XWplcwRZeWCg6WVpxygCU8Dgeo6jDQrieKEQdD5bZ7f5wAMFC/dW+X/GTqP AkgWoL7GBpUMLLea8K7BEcXRi4Yd+VGM6SvAa3QKqDwcKDQ2JNvtSODKHGx6tAkaQ+ GcEGdb7MTtemveefybubjMWR64Z70a6DPAJcRoiD49FBaeRC/3oSx46fTUFUkWQqXg a6LTP74Rr2/fCfDKtu94/BMf6+4Mjc/10Pn8PBIBVmA/+RyTKo0CU+j+9MrSus0zQl J1lZhmK8hjtvA== Subject: Re: [f2fs-dev] [PATCH v4] f2fs: change fiemap way in printing compression chunk To: Daeho Jeong Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com, Daeho Jeong , Eric Biggers References: <20210726041819.2059593-1-daeho43@gmail.com> From: Chao Yu Message-ID: <66d9419d-5ce6-626c-7ac8-d0592f34ec31@kernel.org> Date: Thu, 29 Jul 2021 08:37:26 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/7/28 0:41, Daeho Jeong wrote: > How about adding this? > > skip_fill: > > if (map.m_pblk == COMPRESS_ADDR) { > > if (start_blk & (cluster_size - 1)) { > > ret = -EFSCORRUPTED; > > goto out; > > } > > compr_cluster = true; > > count_in_cluster = 1; > > } else if (compr_appended) { It seems we can add a separate patch to cover all cases that cluster metadata is going to be accessed rather than just fixing fiemap() case here? >>> Signed-off-by: Daeho Jeong >>> Tested-by: Eric Biggers Anyway, this patch looks good to me. Reviewed-by: Chao Yu Thanks,