Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3481047rwe; Sun, 16 Apr 2023 21:28:27 -0700 (PDT) X-Google-Smtp-Source: AKy350Y+hMDYQCQZHyAPwOusxrB1OpryQmZoa7XlUpFj4yFjfHwknoYO5tv5VUiybTq2oTghGV+D X-Received: by 2002:a17:90b:2784:b0:247:4e73:cbdd with SMTP id pw4-20020a17090b278400b002474e73cbddmr9951007pjb.9.1681705707460; Sun, 16 Apr 2023 21:28:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681705707; cv=none; d=google.com; s=arc-20160816; b=DE0AnJdWdkVRt41zfmjDV6oFPmAfMkgJxE80p3+ZR2x3qgXRO+EDHU33A9zcBU1l2j QBZGR6JLuFblvCFDDiBmYvxQamjUJeqoUn1siSHMlqbxmCsOABQZrANZaeOSZuEk2r36 /rGvl47B2aksnlajU/KD+f5Xj+fnCu1UsH4/jN+VtV6t70YMQihi36wSl0FDnUTuCGBq gC1fnknTZzamtAYb4xzPnLzjcxhNEKyYM6cWVwf870yBMIPmHCiz6ws/m2FQovtNuVdT 5E+ZxHoxdahgr9OQT3z4sJKf1M1bnT9iusojhqJiZSrTpDjUAyw1DL7rJyHKM8/yCgt/ 9Fxg== 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; bh=1/d1KrR13aPuKkfnJcYIPRTTtHdfQb9/Y61SVwpj/6w=; b=ngnQ45uFoy4OsqmJr/4bPpfnaJArJ6gwLHX8tQ/VJvUHPSpdYm7r0zGpvJX3hphBRW MqJhh6yE9ix5/wQGCuzvLffBZH/lLa5QcH7bqIio23g9pQKo4o81biUSosQCsA85y5Ks b7ee7YGbJ9XSETwO74/cpoVDUrBQ6A4tfJQUBBXp4lQyyRVmIoZkS/NHG4JyUZb0S4qG GD5zHdFalaGGK8spLpqwnHa4I5k/8aG5Y0gklsuqVpkf+xoPU3ysYdjf78BRYvM3EC6T RgmaW30LCou8ppk8qLENkGJhFBQWEJNFH3HG/WopMxQ7E6SbZNzC77lkP+Cl+ANG4OaQ R+LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=lcrc0NGx; 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 h15-20020a17090ac38f00b0023b472e788bsi10926399pjt.21.2023.04.16.21.28.13; Sun, 16 Apr 2023 21:28:27 -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=@infradead.org header.s=casper.20170209 header.b=lcrc0NGx; 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 S229782AbjDQEKh (ORCPT + 99 others); Mon, 17 Apr 2023 00:10:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjDQEKf (ORCPT ); Mon, 17 Apr 2023 00:10:35 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A549C1720; Sun, 16 Apr 2023 21:10:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=1/d1KrR13aPuKkfnJcYIPRTTtHdfQb9/Y61SVwpj/6w=; b=lcrc0NGx3B1pqEPtUY354kRKI4 w4L9WYnf4kuWbIrMPrxv8Mcu76n5Jb83exOjuM/a3GIAW8tyK93MNXsnWc9RIzPaIUvQ5AvFgP+0i 4rMd3WIlfuNj+HAgRt8AznJcmYqw5wpg70ee1gZMVKaEQyAvZYCuSoDuEwO9QJOhoeuzEzhR7kQsY tIAoVIj0FvnSYDvPyo01LW45QInvf/jr9hEJTJPO5FEK6g47hOaj6omw0hPGZhuHB7T4eCvnsiiMs ge92ySpXdkiDUqRfuZ2OdKY+qquiCMDzbrQsI4GivwM5IPdYwCYGkOZZN+lRhyptmmG8E1bA5Kg+m J3axQtXw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1poGC5-00AvcK-3B; Mon, 17 Apr 2023 04:10:21 +0000 Date: Mon, 17 Apr 2023 05:10:21 +0100 From: Matthew Wilcox To: kernel test robot Cc: Hannes Reinecke , oe-lkp@lists.linux.dev, lkp@intel.com, linux-fsdevel@vger.kernel.org, Pankaj Raghav , linux-kernel@vger.kernel.org, mcgrof@kernel.org Subject: Re: [PATCH] mm/filemap: allocate folios according to the blocksize Message-ID: References: <20230414134908.103932-1-hare@suse.de> <202304170945.28aa41a0-oliver.sang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202304170945.28aa41a0-oliver.sang@intel.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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 Mon, Apr 17, 2023 at 10:18:37AM +0800, kernel test robot wrote: > commit: 3f1c33c25c31221a7a27d302ce6aac8e9b71edbb ("[PATCH] mm/filemap: allocate folios according to the blocksize") > [ 96.797305][ T3511] WARNING: CPU: 3 PID: 3511 at include/linux/pagemap.h:344 split_huge_page_to_list (include/linux/pagemap.h:344 mm/huge_memory.c:2767) Oh, funny. That's: WARN_ON_ONCE(mapping_large_folio_support(mapping) == 0); so it's found a large folio in a mapping which doesn't claim to support large folios. This is a good warning; thank you, bot! > [ 96.994758][ T3511] Call Trace: > [ 96.997888][ T3511] > [ 97.016651][ T3511] truncate_inode_partial_folio (mm/truncate.c:243) > [ 97.022376][ T3511] truncate_inode_pages_range (mm/truncate.c:380) > [ 97.090958][ T3511] truncate_pagecache (mm/truncate.c:744) > [ 97.095638][ T3511] smb3_simple_falloc+0xcbf/0x1840 cifs Ah, it's coming from smb/cifs. I bet it's set i_blkbits to something large. Looks like we need to do something like I suggested to set the minimum folio size in the mapping, rather than basing it on mapping->host->i_blkbits.