Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1927049lqz; Tue, 2 Apr 2024 01:47:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXr+YTwbUiEzFuAoTOmlRm14wT6Ecx4p/8CezteaeBRj0hPLwrBEfmt/uClG2KSRhe80WMZ+UlghVAjhL5tILt5ZwN/16Ef5YpXUt38Qw== X-Google-Smtp-Source: AGHT+IGO1LHeqZTlwbBmR3u40wrvIZkCFWqVEoL/j2ewcMW67k8YKYQjQ+I/LDQp2rlOqjYLxvpq X-Received: by 2002:a05:6a20:e608:b0:1a3:6462:798c with SMTP id my8-20020a056a20e60800b001a36462798cmr10117861pzb.61.1712047620218; Tue, 02 Apr 2024 01:47:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712047620; cv=pass; d=google.com; s=arc-20160816; b=0/+BxTnDdZhwr1L28J3ZUR4WtMw/id06HADlUrD+CfWiXxQas3QKLGKXnbL/OMNYRN YNgOazGL4Wn2GN1IVH9zvF5Q52sPyhNQAf+i9HFrLJFPpeoiKiXIwXDlJjXhVJcHIScm LqdpPHzHZzqcAaklePVDo0iKuuTLQPkEUUHhrhkP1MHKXMY962Qw626R2XNgymEx9F+5 1G1Pg4COo4AAATX3Hu1fU4MU6xyP20LuHIInZh0wcr65K/ucr2dBgI/5mFMrm8Woe6H1 WzQsnFx8HFzM6NkSH8F7dXoyMpgHgoz+yjHcLK0g5jtIKrhJ7kPmEOfoSfWTLpiB56Ro NHmg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:content-transfer-encoding:content-id:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:cc:to :references:in-reply-to:from:organization:dkim-signature; bh=/8zVm5/YGf5Pgwy9JsdjJMXQWirBEfx89VnmYMfPJM4=; fh=+KwpZj2h0X3q1kWpk0tqd4t4VhakhZMU5zA6H8yXCdY=; b=CrP7OQJeHZ/QzJbQbS6xhIW+512N2l/phG6qYh5jJ8NHoXnBn9QNsS1tETnmNaEB7z CtdkQmh5qKg7b/gpduVrQsvC76FGRhH2C2ueIHrC+DLc42Knw0A9SKrHsI7qIBqlRSMD JbImyfKnDHXplXkPUvRZyvIbrz4ERuYyYk4n92QPjaQXMw9ui5Kfv6t3nK7rB65rCG4e jRjiwPQt8XqO8oUPL7KBkrOthQz23i6uSQ7SOzHXV4CRtT8fVUv1dA2aBQRTZAOXqq44 rSGQEBWaSv3Z1F0bnBGQcCad7XzM4f5i/qS4KxVIx0cr3jsyDwXe+SPZqiPJthR0pzx0 XU3w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XNGsU8PH; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-nfs+bounces-2596-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2596-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k1-20020a170902d58100b001dc6d48d384si11194772plh.294.2024.04.02.01.46.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 01:47:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-2596-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XNGsU8PH; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-nfs+bounces-2596-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2596-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E2A1D283956 for ; Tue, 2 Apr 2024 08:46:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A327847A53; Tue, 2 Apr 2024 08:46:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="XNGsU8PH" X-Original-To: linux-nfs@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 20F8645948 for ; Tue, 2 Apr 2024 08:46:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712047590; cv=none; b=YKdK8Q7g2PCDWt6W+9GfcugGmSBq/gDXARG0DFs6+RteJ5scV/gSmamE0qugKDkOZEC00bUpUvKyFhtK86CkH83RgwOrCyEtnZGok2MWkIzxhwtxMco0eLJslkQbMnmXByqIDRpk1zxXBistHhDqR+jRFLCCul9th4bhVHZ/T9U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712047590; c=relaxed/simple; bh=0iCwHoYu3g7mLUt+X6CnAiX5DTbCc5GT+Ny5u3rTSPw=; h=From:In-Reply-To:References:To:Cc:Subject:MIME-Version: Content-Type:Date:Message-ID; b=Idq1IzEYjdWpVz5b2Nfn+58qu+dFVc8uHjxkY1L8Z8JQqVxYYS4gl/m2Xp99AmiunTz5H3TbtRTgqIK1yXjEvTWMt/hMdAKUFFej5vTtkDnYR26jUDvl3n1QqaCiVCEmZZE+TBpd8T7pT0g7yqxRZl+tjDtO6vmO/tNRufonK7c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=XNGsU8PH; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1712047587; 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=/8zVm5/YGf5Pgwy9JsdjJMXQWirBEfx89VnmYMfPJM4=; b=XNGsU8PH9vihpd9vXr2kmi07hroklzXDxvLUCkIgjaB2AAFfh0d3KxqAws8f+YSRDuNd6n 0aPLFSMyp20ykRr8GrDq2mdZ4oNEOeIo0C8i1kvYQFmghCp0aSlvckQWLaAy/ZtjOjValQ twbRum+Hhnsuo0OvjeVRiMKNT5oYEOU= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-158-jPb3_1pmPI27HEkPRk0xlA-1; Tue, 02 Apr 2024 04:46:21 -0400 X-MC-Unique: jPb3_1pmPI27HEkPRk0xlA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7A144185A784; Tue, 2 Apr 2024 08:46:20 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.146]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5D5BC1C060A4; Tue, 2 Apr 2024 08:46:16 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20240328163424.2781320-20-dhowells@redhat.com> References: <20240328163424.2781320-20-dhowells@redhat.com> <20240328163424.2781320-1-dhowells@redhat.com> To: Dan Carpenter , Naveen Mamindlapalli , Vadim Fedorenko Cc: dhowells@redhat.com, Christian Brauner , Jeff Layton , Gao Xiang , Dominique Martinet , Matthew Wilcox , Steve French , Marc Dionne , Paulo Alcantara , Shyam Prasad N , Tom Talpey , Eric Van Hensbergen , Ilya Dryomov , netfs@lists.linux.dev, linux-cachefs@redhat.com, linux-afs@lists.infradead.org, linux-cifs@vger.kernel.org, linux-nfs@vger.kernel.org, ceph-devel@vger.kernel.org, v9fs@lists.linux.dev, linux-erofs@lists.ozlabs.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Latchesar Ionkov , Christian Schoenebeck Subject: Re: [PATCH 19/26] netfs: New writeback implementation Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3047563.1712047571.1@warthog.procyon.org.uk> Content-Transfer-Encoding: quoted-printable Date: Tue, 02 Apr 2024 09:46:11 +0100 Message-ID: <3047564.1712047571@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 David Howells wrote: > +struct netfs_io_request *new_netfs_begin_writethrough(struct kiocb *ioc= b, size_t len) > +{ > + struct netfs_io_request *wreq =3D NULL; > + struct netfs_inode *ictx =3D netfs_inode(file_inode(iocb->ki_filp)); > + > + mutex_lock(&ictx->wb_lock); > + > + wreq =3D netfs_create_write_req(iocb->ki_filp->f_mapping, iocb->ki_fil= p, > + iocb->ki_pos, NETFS_WRITETHROUGH); > + if (IS_ERR(wreq)) > + mutex_unlock(&ictx->wb_lock); This needs a "return wreq;" adding and appropriate braces. Thanks to thos= e who pointed it out. David