Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1875843rdb; Tue, 3 Oct 2023 04:03:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEFOOIHNwkADnsBqrANfdZHYxK7Amwo8y+QYvnQmjv8VioiGKheDMBKKlB6htoPHFEMofP0 X-Received: by 2002:a17:90a:6ac9:b0:276:b21a:9df3 with SMTP id b9-20020a17090a6ac900b00276b21a9df3mr11072912pjm.15.1696330987890; Tue, 03 Oct 2023 04:03:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696330987; cv=none; d=google.com; s=arc-20160816; b=kNPwrRTOLGB+uDoVpeBWoZHpa2kwypiOqKD3scR7tuY4alhcrdmNXjxE4mg53ocOTg uJkmIekDj0oOd8un/vrY7O1ukgPN4wDlxnu0GweJ4XXJeJZgTzbSQ9iLK1CnFbJb+uuH DS3UOHlwP+UchGcoWbW7ij/jMFu/Rn86tiEtyq1H42HAFq7eBtkBM4lGcoj+TkmkPH5l QMioixx6D9HarLU4aNnJFN3LhtnN9KSbjqqfpjK4SyiBye0iLP59s4frSCpPylKnC2QH RR7pPs5rR3nIMrQa6IXbhD7wK9Q5P9i/U8dub0upOIwvYh5jF0dWt2OOwJbJqNIIpcrS 71bw== 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:dkim-signature :dkim-signature; bh=eHdsnnP4BvSQvEhgo909hDKlWY49tL1RfeBhW4GH4Rg=; fh=1HYLgYaylU3/z29Tc/uVuG9sQVCD6+yYW4fbevTtXUk=; b=Z2BghuTpxQ3AkVwL4o4TUUHg1JJWUoaiezZOTjPPJZhis9555MwHACsnw8gUpb0+KZ oJMjgWCjuQnVie0DXYLdoqC56/NrrBQCbNzrmMtzaaqoF2Hwgas30d0J5uOgHr66cfaW zq75KiryEE4Xg4p6OjHtPNpV/HwqVWhkMfmajk7mE1ljV7XZJuBTpi2SpCHlQ9Jh5ZVH oo6uUVZV/SStDZw1cBrunxmUT3zCdKTUCnRnvbN/vF4VXoFhlaRnypExVLsEsdv6RO2e bdu1DABCol3goC2obMDgZuaunhZ7ygZAaybaaRJ2ZuRsEvZkrs65pRX8ByAzKUjvWJI3 PAeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="w4/+rG+4"; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id r19-20020a170902c61300b001c1eed8a336si1098936plr.167.2023.10.03.04.03.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 04:03:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="w4/+rG+4"; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id DEE51812E02A; Tue, 3 Oct 2023 04:03:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239982AbjJCLDB (ORCPT + 99 others); Tue, 3 Oct 2023 07:03:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239983AbjJCLDA (ORCPT ); Tue, 3 Oct 2023 07:03:00 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8397DD; Tue, 3 Oct 2023 04:02:56 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 700AB2189A; Tue, 3 Oct 2023 11:02:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1696330975; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eHdsnnP4BvSQvEhgo909hDKlWY49tL1RfeBhW4GH4Rg=; b=w4/+rG+49ABLgvSvYzOWWxX2mU3m9amiEr8Vi07XDHsRiVNVQPXLog84IpurnjqHoAEcun d63grMdUHUhBDrftNyXydzosdU8wirz2PM+u+Aa86RnoElcb+mcTgG0S2iYj5dhvEKkxL7 SAv9jEsMn5uraEqrcKhzehGEJGoCR7k= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1696330975; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eHdsnnP4BvSQvEhgo909hDKlWY49tL1RfeBhW4GH4Rg=; b=D9V4mhDDV5Dz1HErZmvYdJgIfh6pQpYKtvG2DVRKGcYzkxzK3zYWS/nmkZf4wDh/I906eA NY76KibgSNgv3EBw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 5F464139F9; Tue, 3 Oct 2023 11:02:55 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id Zx9EF9/0G2X8cwAAMHmgww (envelope-from ); Tue, 03 Oct 2023 11:02:55 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id B169AA07CB; Tue, 3 Oct 2023 13:02:54 +0200 (CEST) Date: Tue, 3 Oct 2023 13:02:54 +0200 From: Jan Kara To: "Matthew Wilcox (Oracle)" Cc: Jan Kara , linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, "Fabio M . De Francesco" Subject: Re: [PATCH 02/10] ext2: Convert ext2_check_page to ext2_check_folio Message-ID: <20231003110254.vewb7a5hyxohbz45@quack3> References: <20230921200746.3303942-1-willy@infradead.org> <20230921200746.3303942-2-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230921200746.3303942-2-willy@infradead.org> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 03 Oct 2023 04:03:02 -0700 (PDT) On Thu 21-09-23 21:07:39, Matthew Wilcox (Oracle) wrote: > Support in this function for large folios is limited to supporting > filesystems with block size > PAGE_SIZE. This new functionality will only > be supported on machines without HIGHMEM, so the problem of kmap_local > only being able to map a single page in the folio can be ignored. > We will not use large folios for ext2 directories on HIGHMEM machines. A look like a fool replying to the same patch multiple times ;) but how is this supposed to work even without HIGHMEM? Suppose we have a page size 4k and block size 16k. Directory entries in a block can then straddle 4k boundary so if kmap_local() is mapping only a single page, then we are going to have hard time parsing this all? Oh, I guess you are pointing to the fact kmap_local_folio() gives you back address usable for the whole folio access if !HIGHMEM. But then all the iterations (e.g. in ext2_readdir()) has to be folio-size based and not page-size based as they currently are? You didn't change these iterations in your patches which has confused me... Honza -- Jan Kara SUSE Labs, CR