Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2243818rwd; Sun, 21 May 2023 16:46:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7gafomfkET/4edlO+HKHOTpuuq1tytHRUuoSrZq2UXGe4Ru8uWKdnninXPITwVaLKIluHr X-Received: by 2002:a17:90a:800a:b0:24e:29ed:af07 with SMTP id b10-20020a17090a800a00b0024e29edaf07mr8073934pjn.31.1684712768914; Sun, 21 May 2023 16:46:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684712768; cv=none; d=google.com; s=arc-20160816; b=aFafFYs4kYBlfWlpGgjCKVFg6Pkv68TgrMiKlX8MFL+TVdLiVNeob3txEo3gjPl9QW K2EYdue08ZkT5cM7N9BxqehcAm1gA6ZwjqrkcVYmWEY8ZlGAu+sJra+sVmal/o7uAlmk n+xadnJ69AMEfqf+Ob/+7hOzeN6Z6DUxfsCjXswRhlclB0TDjTI6sxO+3cbkWOq6YnQZ Njw9xj9nclngtQJBnSsHHsCIrn5I3yqnkfdcFu4Yfza6iaFSEsubfyaZKtseU6gZYeqC WzXprVxn4cBVfn/SQ5mu240s0Rj3zXJGjMPUBqkamBCtQLbxtWxe6VflEAfciC+Jrkao P0eg== 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=D3ON52/oBoiDPPEwPVEo7ufvfEHAk3mG/WX3TEQY1Ow=; b=oVmeRkPdCaUFLcwdiav6Rkqj4YIr+fLPQFTjFzX11v98nvWIo4qO2YLTXaZ5l9TmmM jOnJTTul6QlCm5XEaDp7J3j01v6MSfVkG3oqIAm7fUyKph1eb38H/7ZdVqbsfWmrn+XK oVuFQ5w24IPbleT8+y5eo8ReZzWRIw0C1vU5jjIP60VA0Pj8Hh5fQ5PMmkY+RPwP/lWd m8VEN+jURsnhWMuH+aScStePO6NjxnmZlQOAbBG9MlsNSbkVeAz4lzFvrcn6Ra33liCS hp4O6JEWbIyXZlBYUfdb/IEm5nBMHATT/L6DyqIOBfhFrJoTpiWLftmHNlprwR6fuNbF Prvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B01HdAPF; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f14-20020a17090ac28e00b00250b2c89e20si3692278pjt.102.2023.05.21.16.45.56; Sun, 21 May 2023 16:46:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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=@kernel.org header.s=k20201202 header.b=B01HdAPF; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229715AbjEUXoV (ORCPT + 99 others); Sun, 21 May 2023 19:44:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjEUXoU (ORCPT ); Sun, 21 May 2023 19:44:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F4040CD; Sun, 21 May 2023 16:44:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 87C0B614C9; Sun, 21 May 2023 23:44:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 575A8C433EF; Sun, 21 May 2023 23:44:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684712659; bh=rN0pgHH364PGD+YbnxODmAiedsQk+sR/miSpfYq1jG0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=B01HdAPFZNpXSANwj/AR66SsyvdifehJ3h1PPX+3t5dhQlViDal2O1TfIz0ZR/l1+ nWRp26BJPxq1xulOdyjJxBPQFYsZi4oOoIiZy95llY8Vpy9+T3XIicMZVbexOWWdx6 aPmpOFog+AFn7kPaWaFyD7Zkc7qmhAYTysqlisd6I0upsE/lJvleFWkJqdPeBQUrhJ /qk96Ki0QX7a8xyjGjhDmPzSxEtzRViITwpML49uUWd3BM4vuAWHX43lz0K7EkKekd SxswSxIkzlIcQd9/WA+JdT9SYjDE3w5Hio7Z+4H+xfj4WBDhshhfMKwRRVvz3n+dYJ jBdlwTDfxyd2Q== Message-ID: <600202a3-25dd-a404-9051-637fcbc90db6@kernel.org> Date: Mon, 22 May 2023 08:44:15 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH 03/13] filemap: assign current->backing_dev_info in generic_perform_write Content-Language: en-US To: Christoph Hellwig , Matthew Wilcox Cc: Jens Axboe , Xiubo Li , Ilya Dryomov , Alexander Viro , Christian Brauner , Theodore Ts'o , Jaegeuk Kim , Chao Yu , Miklos Szeredi , Andreas Gruenbacher , "Darrick J. Wong" , Trond Myklebust , Anna Schumaker , Andrew Morton , linux-block@vger.kernel.org, ceph-devel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, "open list:F2FS FILE SYSTEM" , cluster-devel@redhat.com, linux-xfs@vger.kernel.org, linux-nfs@vger.kernel.org, linux-mm@kvack.org References: <20230519093521.133226-1-hch@lst.de> <20230519093521.133226-4-hch@lst.de> From: Damien Le Moal Organization: Western Digital Research In-Reply-To: <20230519093521.133226-4-hch@lst.de> 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_MED,SPF_HELO_NONE,SPF_PASS,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-nfs@vger.kernel.org On 5/19/23 18:35, Christoph Hellwig wrote: > Move the assignment to current->backing_dev_info from the callers into > generic_perform_write to reduce boiler plate code and reduce the scope > to just around the page dirtying loop. > > Signed-off-by: Christoph Hellwig Reviewed-by: Damien Le Moal -- Damien Le Moal Western Digital Research