Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1302658rda; Mon, 23 Oct 2023 08:32:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG1kvsv/U4u4b5WNn3q6OXLjeHcK+Yn+RO/RGpEvzV6RJvLDBBN7wvbfhLsFGEVg00nxxbF X-Received: by 2002:a05:6a20:c503:b0:173:f8c9:a898 with SMTP id gm3-20020a056a20c50300b00173f8c9a898mr6456846pzb.52.1698075124994; Mon, 23 Oct 2023 08:32:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698075124; cv=none; d=google.com; s=arc-20160816; b=AwI5uAUaRmpKIIDaef0lMNOJU8QRI/p0kDTw8IS+duiHikGWxhGK6E8a3FA41xT82b c2EgWIWnTryAxDBiZUz/Wfj9PQYF281FwUcrYl6M7C8tNY2hqUpQwJqtm8HaTdni/6CO HDROo7DRgeKnwx042YtgA6uncUXl6ZpFoH+MBGtbgOOxdIwEMkQCFg+k3NiI1gNEdhRt RsGNRm6T61h83aQa6xOu7p/Djsa7CCrkDOTc9UnXIrWB7KPSrbs1YUDRIbfSTmVp1L6L b5A+l5l8mI6rTZKVK6QfLpDw/+ONr9rVDDMdlB40BFsh5yBL7RJE8SqIsMyTw+izr/8Z D7Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=kzYx2bS3zOShhujBKTlSVoDYT8AWuhWkkMexuXmSISM=; fh=imjFzjLG4qph4h5QWRTC1cq+KRDJyzf1iF2L5GqgaZs=; b=xts8tW8FedqCP6fpbqmcktZsSM+dyF/iWn8Fm9J3WoRvnnYGk3qjboxL2eDl4nUPf9 jDsfQRGJHiY2OZzaCic7PJnaEqHeiBFMntUFfINs0ugczoGLTtFmOkgCA+92HfK66Sl8 qr9QG6meBZnbDJ3SgTmYFN480sxgFnC8Jyk3D7xjHKhCNsXOALIxcz86LRaz80ILo5QG uwpPpQ88ebsPcak75w3JnGNf+YewIqBCmm78bFopZdP2Ar80EeTcwIw0Ol5IoqOur2VF Y1OV2M+WW8GLsPBPs9qJ+oETs16DW5sT9fAZ/5d0xMME3/Q/avwyKoI0YA10pmkZ27JG KfuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=atOJP2Na; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id b27-20020a63715b000000b00584b9d0ff80si6397674pgn.127.2023.10.23.08.32.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 08:32:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=atOJP2Na; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 0DF708074790; Mon, 23 Oct 2023 08:30:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233343AbjJWPar (ORCPT + 99 others); Mon, 23 Oct 2023 11:30:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231426AbjJWPa2 (ORCPT ); Mon, 23 Oct 2023 11:30:28 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DBD8DF for ; Mon, 23 Oct 2023 08:30:27 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPS id 415E7C43391; Mon, 23 Oct 2023 15:30:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698075025; bh=Qde5lD2H9pgYacxOPvWGUoIweuMUBvcPozp5suB9kJI=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=atOJP2NaWlB+bkSZfHdWNKdLZ2W2rKacrDJXUjL2ffderZs6lmRxWwo3/R+zukcaS KmBFgd9Q7UeKnwjeBoOh9CmUCVlDELjpOGpzrqMr3iTSxT5RNHm+SKJBcQAtbs4Rqc M4PtUXo+L5fTv047Xy75ZubyJqlJULEnQTmK0tAl+QYWq9CbK9k3QC7fk77EXnbFZT thLma4AHKdB/StGwIjIPjlvsYK5M9gLqPMLXKl41oArLTzhlebyNyEL1n4U1JAddzP Anga6cH/HefM+r3T8LlIG8ixiwAnEGlNSLAfYree4srg1YOBwZgp1m2yNU0wY0IMi/ CQH8kryxtOfzg== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 187B8C595C5; Mon, 23 Oct 2023 15:30:25 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [f2fs-dev] [PATCH] f2fs: stop iterating f2fs_map_block if hole exists From: patchwork-bot+f2fs@kernel.org Message-Id: <169807502509.26537.10000141345816003464.git-patchwork-notify@kernel.org> Date: Mon, 23 Oct 2023 15:30:25 +0000 References: <20231003225208.1936359-1-jaegeuk@kernel.org> In-Reply-To: <20231003225208.1936359-1-jaegeuk@kernel.org> To: Jaegeuk Kim Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 23 Oct 2023 08:30:58 -0700 (PDT) Hello: This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim : On Tue, 3 Oct 2023 15:52:08 -0700 you wrote: > Let's avoid unnecessary f2fs_map_block calls to load extents. > > # f2fs_io fadvise willneed 0 4096 /data/local/tmp/test > > f2fs_map_blocks: dev = (254,51), ino = 85845, file offset = 386, start blkaddr = 0x34ac00, len = 0x1400, flags = 2, > f2fs_map_blocks: dev = (254,51), ino = 85845, file offset = 5506, start blkaddr = 0x34c200, len = 0x1000, flags = 2, > f2fs_map_blocks: dev = (254,51), ino = 85845, file offset = 9602, start blkaddr = 0x34d600, len = 0x1200, flags = 2, > f2fs_map_blocks: dev = (254,51), ino = 85845, file offset = 14210, start blkaddr = 0x34ec00, len = 0x400, flags = 2, > f2fs_map_blocks: dev = (254,51), ino = 85845, file offset = 15235, start blkaddr = 0x34f401, len = 0xbff, flags = 2, > f2fs_map_blocks: dev = (254,51), ino = 85845, file offset = 18306, start blkaddr = 0x350200, len = 0x1200, flags = 2 > f2fs_map_blocks: dev = (254,51), ino = 85845, file offset = 22915, start blkaddr = 0x351601, len = 0xa7d, flags = 2 > f2fs_map_blocks: dev = (254,51), ino = 85845, file offset = 25600, start blkaddr = 0x351601, len = 0x0, flags = 0 > f2fs_map_blocks: dev = (254,51), ino = 85845, file offset = 25601, start blkaddr = 0x351601, len = 0x0, flags = 0 > f2fs_map_blocks: dev = (254,51), ino = 85845, file offset = 25602, start blkaddr = 0x351601, len = 0x0, flags = 0 > ... > f2fs_map_blocks: dev = (254,51), ino = 85845, file offset = 1037188, start blkaddr = 0x351601, len = 0x0, flags = 0 > f2fs_map_blocks: dev = (254,51), ino = 85845, file offset = 1038206, start blkaddr = 0x351601, len = 0x0, flags = 0 > f2fs_map_blocks: dev = (254,51), ino = 85845, file offset = 1039224, start blkaddr = 0x351601, len = 0x0, flags = 0 > f2fs_map_blocks: dev = (254,51), ino = 85845, file offset = 2075548, start blkaddr = 0x351601, len = 0x0, flags = 0 > > [...] Here is the summary with links: - [f2fs-dev] f2fs: stop iterating f2fs_map_block if hole exists https://git.kernel.org/jaegeuk/f2fs/c/4ed33e69e136 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html