From patchwork Thu Mar 30 12:04:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volker Lendecke X-Patchwork-Id: 1763209 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-cifs-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (3072-bit key; secure) header.d=samba.org header.i=@samba.org header.a=rsa-sha256 header.s=42 header.b=pz+Q73CZ; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4PnMYV0wCNz1yYb for ; Thu, 30 Mar 2023 23:05:02 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229741AbjC3ME7 (ORCPT ); Thu, 30 Mar 2023 08:04:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjC3ME6 (ORCPT ); Thu, 30 Mar 2023 08:04:58 -0400 Received: from hr2.samba.org (hr2.samba.org [IPv6:2a01:4f8:192:486::2:0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AF661FE8 for ; Thu, 30 Mar 2023 05:04:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=samba.org; s=42; h=Message-Id:Date:Cc:To:From; bh=MZCNt0oZ+YpH+8I9vdc3K2qCsqt9K1p5uf9wQG4DMQM=; b=pz+Q73CZpGZduO//1R6xNm3Wv6 m+wh3fgTsqK7Q8CTA/B4eC1zeKpRK+sYrvKiMQD7H/BYFDaSrYVwTQQ5VCWAkpqvl8US/iEjqQTnr M8oAjpYeDlk4+Pnsdry23brU7M3h9JB2h3uUMhuMHxVIzkGjnrsT6zd/y2uKq4LycyVBmroXFpRMd lYv25AsG+RvSAWVWSLPizYR6ahuGx4iQnLUOe7kPDnb2XR7SMsdMIT6JAao2qo/cmpuozrtutwvJy jjYCMXLPq7nVizX2Mh9o+m3omjRhjiVPAxHhmHx+4jlKdCq3p4EHOPxzD6YTIMRu1996m6RPbaINs OgJgKZEigQiPrP1xVvImpzyzEQk3p4y9zPD8O/y3HFKeEGLfxvZaGWjooMdKgAqEUn13KM/PaEw3K fpKbY2FB9a4KLNMCD8FYlHMOjzEFHCTAkFrh7dwR/liAqAWW2EfONwbTWg7HLwOHrE7SX4ufMd+la VhpqXm4M9VSrVGqy3Gltolk9; Received: from [2a01:4f8:252:410e::177:224] (port=52126 helo=atb-devel-224..) by hr2.samba.org with esmtp (Exim) id 1phr1T-006GnE-Fx; Thu, 30 Mar 2023 12:04:55 +0000 From: Volker Lendecke To: linux-cifs@vger.kernel.org Cc: Volker Lendecke Subject: [PATCH 0/3] Simplify SMB2_open_init Date: Thu, 30 Mar 2023 12:04:44 +0000 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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-cifs@vger.kernel.org Stitching together can be done in one place, there's no need to do this in every add_*_context function. This supersedes the patchet in https://www.spinics.net/lists/linux-cifs/msg28087.html. Volker Lendecke (3): cifs: Simplify SMB2_open_init() cifs: Simplify SMB2_open_init() cifs: Simplify SMB2_open_init() fs/cifs/smb2pdu.c | 106 +++++++++++----------------------------------- 1 file changed, 25 insertions(+), 81 deletions(-)