From patchwork Thu Oct 5 09:38:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 13410159 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4F64E92709 for ; Thu, 5 Oct 2023 14:48:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234145AbjJEOsH (ORCPT ); Thu, 5 Oct 2023 10:48:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236873AbjJEOpr (ORCPT ); Thu, 5 Oct 2023 10:45:47 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86B5B2C291 for ; Thu, 5 Oct 2023 07:27:32 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F26A4C116D5; Thu, 5 Oct 2023 09:38:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696498706; bh=d5XE/MSf7FUNkmuxaAGhzKlGv4qni/ds0rW0I4rggWQ=; h=From:To:Cc:Subject:Date:From; b=GMdCxTyN/ZXrU2gvITOIWvT+zTvUviqiUiLbxFT9RdyUd4ushHr1L68d01WdLV9OF 1PKmuA9cssRgDX0t3RRC17nDVHzzwJZ2MwDvfjPxW+6l4O5ebLix71VXpvWtxxOoHR rH5RfEKdSxN+wMxsugRNdog+8NMTDBt21/ckCiJnXsO7mbwajkMnWRqgylgCEVtYRH 9EX26F+pE/MoDUaiXJWUdtDU8WV3fTM82dCIIIfBOlQVy8agJlm2CHcof4wRyfHmga GdUWVZZuhu1HoB/9Xbb+Rgh+uIlTwVsDGTAuHS8ISYevNs2RE90YDjC1HlIUh2nYxw hTH2/DQTwblJQ== From: Lorenzo Bianconi To: linux-nfs@vger.kernel.org Cc: lorenzo.bianconi@redhat.com, jlayton@kernel.org, neilb@suse.de, chuck.lever@oracle.com, netdev@vger.kernel.org, kuba@kernel.org Subject: [PATCH] NFSD: remove NLM_F_MULTI flag in nfsd_genl_rpc_status_compose_msg Date: Thu, 5 Oct 2023 11:38:17 +0200 Message-ID: <3dd8abe7304ed6649e581bcaaaf61fc1278cb3e2.1696498541.git.lorenzo@kernel.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Get rid of unnecessary NLM_F_MULTI flag in nfsd_genl_rpc_status_compose_msg routine Signed-off-by: Lorenzo Bianconi --- fs/nfsd/nfsctl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index b71744e355a8..739ed5bf71cd 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c @@ -1527,8 +1527,7 @@ static int nfsd_genl_rpc_status_compose_msg(struct sk_buff *skb, u32 i; hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, - &nfsd_nl_family, NLM_F_MULTI, - NFSD_CMD_RPC_STATUS_GET); + &nfsd_nl_family, 0, NFSD_CMD_RPC_STATUS_GET); if (!hdr) return -ENOBUFS;