From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 489A5C4338F for ; Fri, 23 Jul 2021 20:29:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 297BB60F25 for ; Fri, 23 Jul 2021 20:29:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231564AbhGWTtO (ORCPT ); Fri, 23 Jul 2021 15:49:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:34070 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231350AbhGWTtN (ORCPT ); Fri, 23 Jul 2021 15:49:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 816E460E94; Fri, 23 Jul 2021 20:29:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627072186; bh=mEbNVex0MV4baiJn1vzXJRZ962H3Xgl3nJ2S8pPrXHg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=u+VSTddOjC8+A8m+I0St8amtAisBWFKkZgXbLPgbwmG43VC/UQ3ZDm9FiW0phe5mG sYGG58dUVW04WWC9gvSVZJopOBL8KhN3sxEON13TwJxg09Zq8HstOpnrfrkErL4QwV nEOU9pcPuWsri1PajO/UdAbS82/OIdF19ouJaEXVBnAHLA2wQCLq7NtsnH6u4XGNu9 mHqlpl+5oMB3WetMzEifWmsFAnOsuGSOZdcu1+UUKOCYUCiD5FKOAhteoiEGxltKKb bCN4PFRqjnEqjResbZYz723M05aXcheEuZOMVP0oWgm191w/uRT6f97/Ytvajz9KXs BTHggwP9J3eZw== Date: Fri, 23 Jul 2021 13:29:45 -0700 From: Eric Biggers To: Daeho Jeong Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com, Daeho Jeong Subject: Re: [f2fs-dev] [PATCH v3] f2fs: change fiemap way in printing compression chunk Message-ID: References: <20210723074928.1659385-1-daeho43@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210723074928.1659385-1-daeho43@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 23, 2021 at 12:49:28AM -0700, Daeho Jeong wrote: > From: Daeho Jeong > > When we print out a discontinuous compression chunk, it shows like a > continuous chunk now. To show it more correctly, I've changed the way of > printing fiemap info like below. Plus, eliminated NEW_ADDR(-1) in fiemap > info, since it is not in fiemap user api manual. > > Let's assume 16KB compression cluster. > > > Logical Physical Length Flags > 0: 0000000000000000 00000002c091f000 0000000000004000 1008 > 1: 0000000000004000 00000002c0920000 0000000000004000 1008 > ... > 9: 0000000000034000 0000000f8c623000 0000000000004000 1008 > 10: 0000000000038000 000000101a6eb000 0000000000004000 1008 > > > 0: 0000000000000000 00000002c091f000 0000000000004000 1008 > 1: 0000000000004000 00000002c0920000 0000000000004000 1008 > ... > 9: 0000000000034000 0000000f8c623000 0000000000001000 1008 > 10: 0000000000035000 000000101a6ea000 0000000000003000 1008 > 11: 0000000000038000 000000101a6eb000 0000000000002000 1008 > 12: 000000000003a000 00000002c3544000 0000000000002000 1008 > > Flags > 0x1000 => FIEMAP_EXTENT_MERGED > 0x0008 => FIEMAP_EXTENT_ENCODED > > Signed-off-by: Daeho Jeong > > --- > v3: fix the missing last extent flag issue > v2: changed the print format > --- > fs/f2fs/data.c | 75 ++++++++++++++++++++++++++++---------------------- > 1 file changed, 42 insertions(+), 33 deletions(-) I can't understand the code in f2fs_fiemap(), but I tested that my two compression+encryption tests (xfstest f2fs/002 and Android vts_kernel_encryption_test) pass reliably when this patch is applied. Tested-by: Eric Biggers - Eric