Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp754208rwd; Thu, 25 May 2023 03:32:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6TNoY6PAI3K8T5Njwu89d7cujXqWMKSFSWs7jXRUzGLF6yUv9cP+IGL3fvtItEBtiKpLVk X-Received: by 2002:aa7:88cf:0:b0:63b:6279:1039 with SMTP id k15-20020aa788cf000000b0063b62791039mr3177032pff.0.1685010765238; Thu, 25 May 2023 03:32:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685010765; cv=none; d=google.com; s=arc-20160816; b=VdBezGPKFRo80HDkYZlxoOFdSNZbxmwNLoSgnYTk5b2iM0tgDaIetoewABTU5+xHhH 7iCwmlcJV80Jmc8M8MEkXMwLaY332L9oHPqM6LY01fmerYhOPZZWDRK2tfVKdd3bmimz uGPz1eNOYqnl0UzoXa7mKFnLFpuwdOwN6Q0W1+AgJkWe5mJ6QRkS/ltS2mImXfvuBxoY YT5PArCjre5fjBRRAh1PXLtzv1WElrdIOPEAoG2EFAu+hrRR7coU3qUyWt6ZU6bk0A9N xLZCJ//iNnv400LKOJ9Rln1o1rVk9yiD9ABxWKY61l01tDnuIx01SoEo4yNgvPgIAOIH p7fg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=Yn1VwwZZnMGd9wfXMM6sJL9dM2TITZqpRfOp8vPfG6w=; b=OnESqWTo/XgJSmpQAvfjfuv4oByaybUysPng9njvX9Go/N6atI3LYvPFUrvFXKU4Mw Sw4E+Ad/TK2mn+5pU1+u8YUTGO8cu6OQfe18GBg5U0Ejh3eSN+8COwZ5VTo4b5jKS+MR ceI8ijCp6yCk5v/VaMq1bDnPBCsDsyXQgmAzm0Cj67GfDN5ys2CoMLD40xfNNeSh7PWG KkOEB94W+d/stXdWlDM7fsHv5lZzFdIMIJCL+azPESbphCKSvC4gWYz1+rsoUbNFfzW2 iYGz/JTIXFehZ6E4KBridn8iYBy6Nmwbvt2fMypd+QdrM2Mye38lvy3CfAySNlOm5AKl H60A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=fVWxm+bL; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=E0aCHHgC; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y26-20020aa7943a000000b0063b843131b1si1096884pfo.324.2023.05.25.03.32.25; Thu, 25 May 2023 03:32:45 -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=@suse.cz header.s=susede2_rsa header.b=fVWxm+bL; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=E0aCHHgC; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240961AbjEYKUs (ORCPT + 99 others); Thu, 25 May 2023 06:20:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240987AbjEYKUb (ORCPT ); Thu, 25 May 2023 06:20:31 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2C96171F; Thu, 25 May 2023 03:19:34 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (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 58CDE21AD3; Thu, 25 May 2023 10:19:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1685009954; 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=Yn1VwwZZnMGd9wfXMM6sJL9dM2TITZqpRfOp8vPfG6w=; b=fVWxm+bL+i5pEgt3Z8XilKr3Gvbbv1jtRwLLQevfT8EnV5hXSShtRaBdDIl0Fr801DJUEM AjyCC+wJamU1mTnsOYfzNT+m1UXYjNELEAugmO22VkeMpYez9wnFVIAVHXkn0ARKQsrTLy SNexZfs3L4MbBL5VLDXuiLvZxu5RVdc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1685009954; 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=Yn1VwwZZnMGd9wfXMM6sJL9dM2TITZqpRfOp8vPfG6w=; b=E0aCHHgC7A/mVwNdcx8OaBWYtQ/u+k4VT18BeHms/gEfX/RH94JMKMXUQRcXFLhyFAspKV Z+Tq6oHIDRN/BrCg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (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 imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 4C6E5134B2; Thu, 25 May 2023 10:19:14 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id jjOQEiI2b2TFdwAAMHmgww (envelope-from ); Thu, 25 May 2023 10:19:14 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id DE789A075C; Thu, 25 May 2023 12:19:13 +0200 (CEST) Date: Thu, 25 May 2023 12:19:13 +0200 From: Jan Kara To: Jeff Layton Cc: Amir Goldstein , Jan Kara , Chuck Lever , linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, Dan Carpenter Subject: Re: [PATCH] exportfs: check for error return value from exportfs_encode_*() Message-ID: <20230525101913.vokjxsthhoxsz6xk@quack3> References: <20230524154825.881414-1-amir73il@gmail.com> <61146b7311e44d89034bd09dee901254a4a6a60b.camel@kernel.org> <0a140464f921baf88a0295e91a43bbd92faa2f2c.camel@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <0a140464f921baf88a0295e91a43bbd92faa2f2c.camel@kernel.org> X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_SOFTFAIL,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-nfs@vger.kernel.org On Wed 24-05-23 13:36:11, Jeff Layton wrote: > On Wed, 2023-05-24 at 20:24 +0300, Amir Goldstein wrote: > > On Wed, May 24, 2023 at 8:05 PM Jeff Layton wrote: ... > > > > Beyond the general idea, do you also ACK my fix to _fh_update() > > above? I wasn't 100% sure about it. > > > > That looks like the right way to handle _fh_update(). I think that > should also make it also treat a value of 0 as an error, which seems > like the right thing to do (even of no caller tries to do that today). > > Reviewed-by: Jeff Layton Thanks! I've added the patch into my tree. Honza -- Jan Kara SUSE Labs, CR