Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3441023rwd; Mon, 29 May 2023 10:27:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ48TwbCxKewPACG4xc3k12MG8bPI9oB/ol8HNZOZ0VHocoDw9jhtnZrcWzLYPkSjvzxEE9K X-Received: by 2002:a17:903:1112:b0:1af:b2d3:c6f4 with SMTP id n18-20020a170903111200b001afb2d3c6f4mr16335288plh.14.1685381254178; Mon, 29 May 2023 10:27:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685381254; cv=none; d=google.com; s=arc-20160816; b=zNgSg7jHiJy+I0iKDc3BWRbSjmmQ2FX3TZcNBUu/tDHC6TId6gljLxGk39E4oIdfcr YG9rUnlCfMROkLMADPy1PcO1wWoqKpL0F6pXSqi6lk+hYzf9x9fUjmGnQAjeQZ4sP/a7 fngdjNwbpIRCZFbEdxvIRg65LVN+AC/PeUwAHwnTN3cfBUV17Hn/hPGucnRCeFk6z9j9 kTFhZ32wCF7KGEqeHAvum90tAnsYUazN533c28I12S8k7X0gY743kBnotnTEBzgjglJd wlTbShIlRyrues/6XkYBkyde0AuPDu/BXVdYCAesSCW/8auy4L4cdDdDAuefQyyYkP/m J2cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=rB9VfmOx0wBbizK583+OAKBFCiJju0fCCUZtBDpksf0=; b=dWkn7bkGb3nxQ7/qxWESUAKJfXyL6MUJdpnIvC+EyF7V7FqEu00sDFXJyWZkna7oCY j1M7kYsEVFkCKnmzZ94dOVVvrrjzkxrQfcIHOPUANPqYHqLLXeysgWps+45iePIF61ss WmV4HXW9D63kFwX0DRaKBbgUOrKp/fP27exh2+zY5DZ4mVCTEER1KtoSxrasEhpXxfbG DQueLty7RnoFCfsmN4c+MwkQChB3AA6l3NZXFfKJ1LphGPOlQMqO1d5na1icxn9HhS/R vK5rIIgFIMeH2DtsAAWF/XZKoixAYwWGF5BOypVhwWAs330R5aJ9Iou0AjY0RlTLkJCG eXPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=IfKR3S49; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b="lncwWhG/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y23-20020a1709029b9700b001a2513b8e14si9300975plp.84.2023.05.29.10.27.19; Mon, 29 May 2023 10:27:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=IfKR3S49; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b="lncwWhG/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229569AbjE2RNF (ORCPT + 99 others); Mon, 29 May 2023 13:13:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229550AbjE2RND (ORCPT ); Mon, 29 May 2023 13:13:03 -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 C9BA6CD for ; Mon, 29 May 2023 10:13:00 -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 7FB1721A7A; Mon, 29 May 2023 17:12:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1685380379; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rB9VfmOx0wBbizK583+OAKBFCiJju0fCCUZtBDpksf0=; b=IfKR3S49D1e53xZzyj7oNKSFqsrS8eprPxkhez5rW5ouuGnSo/VbCitNGkF6GsKzXleW85 0NKyzYwwIXM65hgXAtTXTVJVcEenpNiov2PMKWiVeFLejO5kdZhUmjpCY9nhneZLXJyjpV wYROWMDSYRsyeArMPnkJeSU6rrlbDEc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1685380379; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rB9VfmOx0wBbizK583+OAKBFCiJju0fCCUZtBDpksf0=; b=lncwWhG/nHnwgOAJdvIeT2YDKUWV+8YX5uStXPxR0ZvC4EgoUPpw18wO2fe0EMBhArGge6 ntrGfZqhwaW6LNCQ== 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 318B11332D; Mon, 29 May 2023 17:12:59 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id wqlqCxvddGQJXwAAMHmgww (envelope-from ); Mon, 29 May 2023 17:12:59 +0000 Message-ID: Date: Mon, 29 May 2023 19:12:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH 5/5] mm: compaction: drop redundant watermark check in compaction_zonelist_suitable() Content-Language: en-US To: Johannes Weiner , Andrew Morton Cc: Mel Gorman , Michal Hocko , linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@fb.com References: <20230519123959.77335-1-hannes@cmpxchg.org> <20230519123959.77335-6-hannes@cmpxchg.org> From: Vlastimil Babka In-Reply-To: <20230519123959.77335-6-hannes@cmpxchg.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE 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 On 5/19/23 14:39, Johannes Weiner wrote: > The watermark check in compaction_zonelist_suitable(), called from > should_compact_retry(), is sandwiched between two watermark checks > already: before, there are freelist attempts as part of direct reclaim > and direct compaction; after, there is a last-minute freelist attempt > in __alloc_pages_may_oom(). > > The check in compaction_zonelist_suitable() isn't necessary. Kill it. > > Signed-off-by: Johannes Weiner Acked-by: Vlastimil Babka