Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4101321rwd; Mon, 29 May 2023 23:59:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4rYg232j/XDQzWrzmRWnaGVDBPUKy2tHu/aQ31q5dxUrGSGDQFxJF+8DdE4B/Bfxd1TfB9 X-Received: by 2002:a05:6a00:a0b:b0:63d:47c8:856e with SMTP id p11-20020a056a000a0b00b0063d47c8856emr1707070pfh.2.1685429997125; Mon, 29 May 2023 23:59:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685429997; cv=none; d=google.com; s=arc-20160816; b=s2G+erz8JGjfxeDj05VCOOyCvurtpF44yEht3fcUUYGm6cs6bM0ZmdMGgu8U1j4KA9 BIkUVxeIsNZYcBr6jO3NcuRktgeUjMpDL9qBSOJkXxuJc+haJwAU/AsflJN5JVsX8O+H rQjQxC6oMf5bitxfwIDQsxKmgn9/0G7ldBP2MAUillKEcLg93cEdz8z6JHL143nVtxz0 UmlQkE0Gm4tKRIs0c7GswvqjafbKADshyJrxdcSoEv+boCIbSd2X8esbZP6OLudZ93le DDWh9uMhz1hYr2Pq4uYdgEm/3gezCN+7hxowZeqzCO4cVlcPB9rGeCTC5S1pjzg5Jbsi +2QA== 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=na+p0paEdS/8Y8T0BrCClL2O3maOna4/kPssDowwqN0=; b=SaiV8rJYdcKwGbPUWQuVp+t0bjjEVfJZskwYJqNGmKv8lcqxP9TezAG4ppEBPH3+hx f8lq1adZy6Ym4XX8zx3DRUzO3CABWW3nx5LyVNymR53bdmZ16YIBpA+T5xtliR2L7vuZ bTr8+c5CLklgRRdOPZ0nU3hd4WIL1x6jJFVreHtEyL7qhKOhCn6v/c6UV1sEdNAJsAym Y3kwfaPTJE5KaITz8KdKwnhHKd4oJUJlKb0N8hga/tWeAz7+sVQX5MSQ1UOq4wiK1u6f GHPhZg4Q7ZQVveFRX67D79XF8ywZU3AdcrLciWUBkWkUKU/duaVffJtzLJhYR46n2lqB L6aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=GqurWhHw; dkim=neutral (no key) header.i=@suse.de header.b=MEdttlr3; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b3-20020aa79503000000b0063b21db5973si1162402pfp.358.2023.05.29.23.59.42; Mon, 29 May 2023 23:59:57 -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=@suse.de header.s=susede2_rsa header.b=GqurWhHw; dkim=neutral (no key) header.i=@suse.de header.b=MEdttlr3; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229973AbjE3G6y (ORCPT + 99 others); Tue, 30 May 2023 02:58:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229552AbjE3G6y (ORCPT ); Tue, 30 May 2023 02:58:54 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 153C3AB; Mon, 29 May 2023 23:58:53 -0700 (PDT) Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (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 735E221ADD; Tue, 30 May 2023 06:58:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1685429931; 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=na+p0paEdS/8Y8T0BrCClL2O3maOna4/kPssDowwqN0=; b=GqurWhHwiY9GRrTySyzvQ9wkpC+4mU7THf9srRHo2wWqG8eZogy9KHZ7+wv31DoqGY3INZ 9GimPtRja11/pCkVJAmE1JHGryYYfZgWQ8gjAULDhHXQ+J7w/eiy1DVEs9Zz7xlT+4hqYq 3791wlCGeBZlrrgLdZ+ul/k6FKTEFIo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1685429931; 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=na+p0paEdS/8Y8T0BrCClL2O3maOna4/kPssDowwqN0=; b=MEdttlr3a1oaJiIqcYgGAV47XUrgRtm9G1nXGEivKOWOgzpWsuYjxi9EJAtDaYD8ZeiSka PnskKirmKN8IRYBg== Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (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 imap1.suse-dmz.suse.de (Postfix) with ESMTPS id BB4C61341B; Tue, 30 May 2023 06:58:50 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id FyY1LKqedWSIcgAAGKfGzw (envelope-from ); Tue, 30 May 2023 06:58:50 +0000 Message-ID: <4cca9f8b-e140-601f-f87a-965aafb65558@suse.de> Date: Tue, 30 May 2023 08:58:50 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 04/11] filemap: add a kiocb_write_and_wait helper 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 , Damien Le Moal , Andrew Morton , linux-block@vger.kernel.org, ceph-devel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, cluster-devel@redhat.com, linux-xfs@vger.kernel.org, linux-nfs@vger.kernel.org, linux-mm@kvack.org References: <20230524063810.1595778-1-hch@lst.de> <20230524063810.1595778-5-hch@lst.de> From: Hannes Reinecke In-Reply-To: <20230524063810.1595778-5-hch@lst.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.5 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_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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-ext4@vger.kernel.org On 5/24/23 08:38, Christoph Hellwig wrote: > Factor out a helper that does filemap_write_and_wait_range for the range > covered by a read kiocb, or returns -EAGAIN if the kiocb is marked as > nowait and there would be pages to write. > > Signed-off-by: Christoph Hellwig > Reviewed-by: Damien Le Moal > Acked-by: Darrick J. Wong > --- > block/fops.c | 18 +++--------------- > include/linux/pagemap.h | 2 ++ > mm/filemap.c | 30 ++++++++++++++++++------------ > 3 files changed, 23 insertions(+), 27 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Ivo Totev, Andrew Myers, Andrew McDonald, Martje Boudien Moerman