Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp387728iol; Thu, 9 Jun 2022 06:00:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOPpiOHdgFP1WW+xACptZrcFhtDFEOmPByzXwAghHxXMmMAHPodN3mGCL/1RvvMQzFxaxp X-Received: by 2002:a63:d008:0:b0:3fc:f8bb:4ed9 with SMTP id z8-20020a63d008000000b003fcf8bb4ed9mr32463452pgf.215.1654779644133; Thu, 09 Jun 2022 06:00:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654779644; cv=none; d=google.com; s=arc-20160816; b=spwdHdsml3w6f7GVrI3uJwG80jE+pxxNhUorhPlr7XJcdMtw0SvCzSxz/AVYB9dB9Q JugupjfnJcOxK5E5d3kTAGfDbn5kY1qFgv/YrX1tfK+EhXeiW31z2NMqaewmzO0GLdUw ZzIInBjvyRlsk7s7FTLsyeVztJzgSLAvvRWgZ/r/DIPoU6Gm6pVsySnOfdoEtlmj9Hjy b/pBdQrPhQMiT+yHZPpzp+nhhWVilNR7UnacRK034DNSybGsrFuFiH7iNAOm/IcLj5OQ GIhOo7RiZtOQ09guUfIGMgSW17nDylheuRitdKxoAJqURMQap5XTft6H0chYR2GKmSkv qNeg== 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 :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=zufIRXqzWNkS/vBQ6LnlofDt3t0aO0GgELLgxZEV3qM=; b=ozEHlvYofM8PlnpqVtnocSEN+ilTJ0/vzLHfZWudIErLgZ4/+qQJ7LofhqeQgQDpmb FfTTb3S0ylcxi+xbOI0/VOaKaiD0yh7iRX5loSjtA4R9Ogfltu5YlZZTG6FtP86KR3Um EZ59tQwPKdDamokQ8v+lPjt0SHwtGKa+TRmofmdUi0jMW6yTPSVtzO8XssytugKGEgp1 ibY626/AFjb3Do9On3ubk1moy0e8FecCe+AAohso0soRVjrzum9iiGh3eqT6eNYWE4Lq BGqfi8L37EA90e3wCjCxXeywLdbR8aeeP3BQPB5xYU1WeYw7P6glYJarx+BRJrOrKjuE 0lvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bfaVa0re; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d8-20020a056a0010c800b0051ba2c4130esi12028978pfu.214.2022.06.09.06.00.24; Thu, 09 Jun 2022 06:00:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=@redhat.com header.s=mimecast20190719 header.b=bfaVa0re; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233314AbiFIMqV (ORCPT + 99 others); Thu, 9 Jun 2022 08:46:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236131AbiFIMqS (ORCPT ); Thu, 9 Jun 2022 08:46:18 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 25317214806 for ; Thu, 9 Jun 2022 05:46:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654778776; h=from:from:reply-to:subject:subject: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=zufIRXqzWNkS/vBQ6LnlofDt3t0aO0GgELLgxZEV3qM=; b=bfaVa0reba5JNx1JCCi449akB/iE7w7HJkh+iPewcoKUtXRVntBOZRj18BsRFXEJQD7Xt3 GObsr5AzbK9k5Qx9iLnaJWAyVgOUUAb6wweVt7qXGOICRsO1ol959im5WFYdFixia0rC7b ZHeTquzJ+C6aZV+E1vVG8wDxl9vLE1g= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-487-VBeJVTpmN0SgaP841xsshQ-1; Thu, 09 Jun 2022 08:46:14 -0400 X-MC-Unique: VBeJVTpmN0SgaP841xsshQ-1 Received: by mail-wm1-f71.google.com with SMTP id p42-20020a05600c1daa00b0039c62488f7eso2641634wms.7 for ; Thu, 09 Jun 2022 05:46:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=zufIRXqzWNkS/vBQ6LnlofDt3t0aO0GgELLgxZEV3qM=; b=aRUclEXUzgMlY5KYqBbANIIz+uPRcoBlatoHq5uNn7dyCdSJd88rVaOLdGEA5LYg+k SjzOVgEKXVbIsH3xNpDqalYVhIlgZhRW4oNbvgPhIqEXFBD9kfWmu7HAq/lSnmX+ZRLp 6OXucHbQBdZEFEOVO7E1fjOFopCuVJ5WQy21nYYyVxm+1k8Qtzn3pf4oFc8g87dqGuSQ eHtRyoeY/0bOY+maM553sVPzaY0J//zaytQuybh9lth6HLNezjRLsPwVmG+fkV50MSl6 dUGdwmoKW82+BQqfFV+FQdNKsuYzZKP/HZKpPH99tRi6q+gpvsX15eDUQzk0W2WgbkiQ rF5A== X-Gm-Message-State: AOAM5300BUy8hCaCfVxlgIrT0rO12+OdOr6sOnmLJ29o1/4mrDOLmlip 9ZcH8GPluEqeaHCmK5ISoeDdpj1Gf+R9sykc2MODV2khfrBZA3/HJxQmX+z/yNclxBqaTN6z+Rk 7V82T3z2oLSIhCIWeo6LFdQ== X-Received: by 2002:a05:6000:168b:b0:218:54da:90ba with SMTP id y11-20020a056000168b00b0021854da90bamr12022156wrd.283.1654778773732; Thu, 09 Jun 2022 05:46:13 -0700 (PDT) X-Received: by 2002:a05:6000:168b:b0:218:54da:90ba with SMTP id y11-20020a056000168b00b0021854da90bamr12022117wrd.283.1654778773451; Thu, 09 Jun 2022 05:46:13 -0700 (PDT) Received: from ?IPV6:2a09:80c0:192:0:20af:34be:985b:b6c8? ([2a09:80c0:192:0:20af:34be:985b:b6c8]) by smtp.gmail.com with ESMTPSA id a7-20020a05600c224700b0039c693a54ecsm3854607wmm.23.2022.06.09.05.46.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Jun 2022 05:46:12 -0700 (PDT) Message-ID: Date: Thu, 9 Jun 2022 14:46:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH v2 01/19] secretmem: Remove isolate_page Content-Language: en-US To: "Matthew Wilcox (Oracle)" , linux-fsdevel@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-aio@kvack.org, linux-btrfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, cluster-devel@redhat.com, linux-mm@kvack.org, linux-xfs@vger.kernel.org, linux-nfs@vger.kernel.org, linux-ntfs-dev@lists.sourceforge.net, ocfs2-devel@oss.oracle.com, linux-mtd@lists.infradead.org, virtualization@lists.linux-foundation.org References: <20220608150249.3033815-1-willy@infradead.org> <20220608150249.3033815-2-willy@infradead.org> From: David Hildenbrand Organization: Red Hat In-Reply-To: <20220608150249.3033815-2-willy@infradead.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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-ext4@vger.kernel.org On 08.06.22 17:02, Matthew Wilcox (Oracle) wrote: > The isolate_page operation is never called for filesystems, only > for device drivers which call SetPageMovable. > > Signed-off-by: Matthew Wilcox (Oracle) > --- > mm/secretmem.c | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/mm/secretmem.c b/mm/secretmem.c > index 206ed6b40c1d..1c7f1775b56e 100644 > --- a/mm/secretmem.c > +++ b/mm/secretmem.c > @@ -133,11 +133,6 @@ static const struct file_operations secretmem_fops = { > .mmap = secretmem_mmap, > }; > > -static bool secretmem_isolate_page(struct page *page, isolate_mode_t mode) > -{ > - return false; > -} > - > static int secretmem_migratepage(struct address_space *mapping, > struct page *newpage, struct page *page, > enum migrate_mode mode) > @@ -155,7 +150,6 @@ const struct address_space_operations secretmem_aops = { > .dirty_folio = noop_dirty_folio, > .free_folio = secretmem_free_folio, > .migratepage = secretmem_migratepage, > - .isolate_page = secretmem_isolate_page, > }; > > static int secretmem_setattr(struct user_namespace *mnt_userns, Reviewed-by: David Hildenbrand -- Thanks, David / dhildenb