Message ID | 20170407181528.2832-6-Anna.Schumaker@Netapp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-nfs-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3786160364 for <patchwork-linux-nfs@patchwork.kernel.org>; Fri, 7 Apr 2017 18:15:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 304FF28634 for <patchwork-linux-nfs@patchwork.kernel.org>; Fri, 7 Apr 2017 18:15:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 252B328636; Fri, 7 Apr 2017 18:15:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C30F128634 for <patchwork-linux-nfs@patchwork.kernel.org>; Fri, 7 Apr 2017 18:15:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933118AbdDGSPw (ORCPT <rfc822;patchwork-linux-nfs@patchwork.kernel.org>); Fri, 7 Apr 2017 14:15:52 -0400 Received: from mx143.netapp.com ([216.240.21.24]:46795 "EHLO mx143.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932731AbdDGSPs (ORCPT <rfc822;linux-nfs@vger.kernel.org>); Fri, 7 Apr 2017 14:15:48 -0400 X-IronPort-AV: E=Sophos;i="5.37,167,1488873600"; d="scan'208";a="186183185" Received: from hioexcmbx02-prd.hq.netapp.com ([10.122.105.35]) by mx143-out.netapp.com with ESMTP; 07 Apr 2017 11:03:29 -0700 Received: from VMWEXCCAS10-PRD.hq.netapp.com (10.122.105.28) by hioexcmbx02-prd.hq.netapp.com (10.122.105.35) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Fri, 7 Apr 2017 11:15:46 -0700 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (10.120.60.153) by VMWEXCCAS10-PRD.hq.netapp.com (10.122.105.28) with Microsoft SMTP Server (TLS) id 15.0.1210.3 via Frontend Transport; Fri, 7 Apr 2017 11:15:46 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netapp.onmicrosoft.com; s=selector1-netapp-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=0i0uiYNQEknjMoMHxxCmccbn6xHNSMfHxL8n4z0ct/Y=; b=rC1vkmYuizxjWai6dXYirju7Q85fAARSj5zGkRKynzfVx1bPqesOBrMe4rsLKyLaL493imhDgN2wzunWOkxVpAO1eqNCrkTs73sXCA4rPGS7HUuBBypOFjdCVoxmH7rsf2/F3Rku0VpCV/9Y35OyxNkA9E2bEdDVZFSo4m7BQZc= Authentication-Results: primarydata.com; dkim=none (message not signed) header.d=none; primarydata.com; dmarc=none action=none header.from=Netapp.com; Received: from gouda.nowheycreamery.com.nowheycreamery.com (68.40.188.1) by CY4PR06MB2472.namprd06.prod.outlook.com (10.169.186.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17; Fri, 7 Apr 2017 18:15:44 +0000 From: <Anna.Schumaker@Netapp.com> To: <Trond.Myklebust@primarydata.com>, <linux-nfs@vger.kernel.org> Subject: [PATCH 05/34] NFS: Clean up decode_recall_args() Date: Fri, 7 Apr 2017 14:14:59 -0400 Message-ID: <20170407181528.2832-6-Anna.Schumaker@Netapp.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170407181528.2832-1-Anna.Schumaker@Netapp.com> References: <20170407181528.2832-1-Anna.Schumaker@Netapp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [68.40.188.1] X-ClientProxiedBy: DM5PR20CA0021.namprd20.prod.outlook.com (10.173.136.159) To CY4PR06MB2472.namprd06.prod.outlook.com (10.169.186.140) X-MS-Office365-Filtering-Correlation-Id: ce47e20f-effe-469a-0075-08d47de21c00 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:CY4PR06MB2472; X-Microsoft-Exchange-Diagnostics: 1; CY4PR06MB2472; 3:yFraa6qcazIQ64h2U/weE+OCNXSg7OR5yA0xdt0wkImtlwdg8Z6QGnYM3w8yKKJL+ZHV2jLdjqaodx8cZ4JypXH3CPiULU5Rb9pEYyZ0G1tmOUWnDG2spWjtujUbz8GjMLmVOpJrWutrTjs4T+Yal1zfPqTzCDMm3cs4PTgraF9/1BfOxSUqpdfqD/FIRnhMGPSDrMJtJOPYO7T5yb53AALcvYWW09z9B2fFzF3ykE/UNOTKVwj1aIsZHJogewahIn8W0fZEns/uM1fPrx0upIpK2237Q+xISTfAwjJka0ncPHN/BlrL+jVFg09yCiaTbt2uTG0RHRtaysGr0UEU6g==; 25:TTQL8tsykYGfBLItogmnmuSqWAzfNrCl2rOfv3U8tLIoIv8VDlXaMoZFZgcC54Tw8F4qt6WDQPeY6PI1nMsY0kf8eP+5yzwCpDRqfiRvKCvxRTTiElUB0XVHis93vvrdaRzx1H++HrLrDca67yuOVrhqu0xwfyY2ELPa+6mQ7HazGaSx2oZ95LsfhffC3pk0J6WtBIb5gLZSUNw8PGakGVol2qF1dTSdgg9X4w1ZEPYUBP4CImuWzmIjyB7iPLlKxC/ipwgmruuHw0ct0ddl3NuHuQzsTaweOdCm5F/IJKgB+oB5ZGcnQBFAFbdqwQqczjfxqxOEm7/19/OhtQvpDDKMdLHi88tivGcI3Zq48bGIDuJTmBECd9FGPl7r/BoW5RJIggeh1gZVZEOvQajPM6v7AHT2MwpvN+5v09EHMcac4NqRM7kvDJj7MSyQd58yckohk6sUAgDKcPDM7CjjJw== X-Microsoft-Exchange-Diagnostics: 1; CY4PR06MB2472; 31:PYkpaIpdRAchM8FJuch0+boX2qH4isr0mRAsbwLFufoHcOr6JikK7Zp6QhYm4g55N9tCQZZ6W8R3kV4lgz40bwN/8Ku4WYwDpcZOwim45HkGMpKmtWa/5QLuY6TLcCVbtkb1711P1qADhuIAN3RNOnyH3CCAJt7y9DW8Ttct3Kcdjz5QRl3pNJ8RdWs1viryo3+sbOiDDUBFdY7MrKD2c6Pw6ngOo2O3drcATSddF6tOET8YbbAYoh19vj2jLYH/tgW7RkGrw8GFRnzCiC0FWw==; 20:j1vdI73OtQLaZRLgVIYjh3XoJ4+0v6ae8OdbCuJFR+ktF4JQ3MXnguomQ+rjlDB7S6l8g1nXnoqdlKgPjxhOUQYwYgXt7/iBhcQf4tbXs3CMnewehoCijtKvor2s7FSr0YY3P1suRfX2OqvL2E5lnBbh9i+pAl+5Yabr+IMCxuWXM6/cg3GVe0MHQuj7U6nqJZG5907ARRfeb4pYPJdnMWQNsnrs5vEZafMInc/DGD8nlTCd11qdLQbmtFcXOk7ZnTT6jpwMycbeSXtaH0Ft3haSmT70Fw4CwIYiOSLFsSF1db/Yh53DcPoZMyiU/UmULk/2AbdzJ8mBgxUoyRrVkxPYLAP9LpTCYG/5t7N9+/+uFW7G3CONeEZY8gNeRwCBj/pPLtbYXvJCdWDxE1Y2LbJ5J4BTlo3kw8g2WlfqAT+cwITyWPADoeonzQzT0LjZjKMPzPskH9h24SExPEfhJeop/+Fj444x+boyH6fGJCV+9kx/HOc0VrEuRI1/R+td X-Microsoft-Antispam-PRVS: <CY4PR06MB2472BC5C30BC3B756FC8CE3CF80C0@CY4PR06MB2472.namprd06.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123562025)(20161123560025)(20161123564025)(20161123555025)(6072148); SRVR:CY4PR06MB2472; BCL:0; PCL:0; RULEID:; SRVR:CY4PR06MB2472; X-Microsoft-Exchange-Diagnostics: 1; CY4PR06MB2472; 4:I9wzm2x53Y6GYCQfonUSaf/1feX2RQdAeNR8ECTXb4VCsvVt5XRxG0KujmEpGmoybkmStr1yhK2rq45NTBhFFPF13FoP+SxI3k1+SEqovbcQ0FdPwbGZqZg6oM+g3X+5U+e3qpdIbNsb8y752YMmDjVOuR9z144pSpPuFiUPgCCUhJFaepcFkA952bWOCT4eOlor6upNiDpNPwOwANcUReDeAI4z+TsymbO6l5Zr8fgDNTa61OHtFqzXRIjpdHh1geY/mXV+721Scr8OXN2h8/IdQZGXOOFKmXrnLXUXheYGSszS7umaRYe0t9g/O/og9gdc1bCBo2whulDue2KCrZK+/M31t2WIV3G/Kjw9twK4g7bKI2RpE080GrZcXO2gGFBStR9MFmRBRwELoXdEmm+WQzw9nHj3TkmI6DUS/XwALDemYR6RkCHZgbPK4pHEmuZAFJT1oy8HKUYO/y1W11XjPR6M07a4l2uhe0J3aEd/MgjE5DRNdAMUV6Zn7dMqyshSDONgCA/h32yVaI6IvAGQhsXlzvmdze6VMEXRqBsJzTGb7M+uWOofCj5ds8qLjyVd6qeWIJljbumoZusDKx1pGg7+gXk/X+aBorZzU9wt4U25RCsGy688zCDE9k0eqzmlpe4bh0hObVLr8ciCO1sgKojrZ7jN+Ld0jppadDWtp5+sA+jkcljh+JhV3wGz4Y0W9PbV6fjjSWanJ2HuJuDjfht4QPFxe4514smkkCA= X-Forefront-PRVS: 0270ED2845 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39850400002)(39400400002)(39410400002)(39450400003)(39840400002)(50226002)(8676002)(81166006)(76176999)(50466002)(50986999)(3846002)(86362001)(47776003)(66066001)(42186005)(1076002)(6116002)(2906002)(48376002)(6506006)(2876002)(2950100002)(189998001)(305945005)(86152003)(6512007)(6666003)(7736002)(5003940100001)(6486002)(53936002)(38730400002)(25786009)(36756003)(5660300001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR06MB2472; H:gouda.nowheycreamery.com.nowheycreamery.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR06MB2472; 23:oVSHiiWDShDFjl0a2T3Ks/vwtHPlw/M3r2Y9M09GH?= =?us-ascii?Q?WgViaGSU0cTNT3QmIOPImLqbDdcug3b9Cx3iF4R87vGDvyKl30jnOh5hYutP?= =?us-ascii?Q?Bx9fGHRYSK/LtlAPSS0hKqRWeZsu+4rqrLx2nS9MhLhx+fP4UXPNpw23WP2O?= =?us-ascii?Q?SvxpbSVHrVxMdM/JzJabbFqAvQFdDER+D+JnQ4JKlFuClwjeqpkB7JQVyH9o?= =?us-ascii?Q?AFcChE8qIhm27fEhUJuq1ihq1tRxPXxlxwgNPdhH3q8UG462U7ewR+mkCeVS?= =?us-ascii?Q?6xt8bflIBWU1AuB23e5xz+ft883fvrP5yt2IgzgRaAhNPDvzV3L25XopprK9?= =?us-ascii?Q?c24EvROOTTxlGGs4unFkTfim/I6Awey7UrODqGp9SGlHx789VGiN2HbtNE5X?= =?us-ascii?Q?CycGAKoPpYRoszff2EgyqUvsohrzGa/VcZF+RT1+z/+Ikum7k45clzYzR1v7?= =?us-ascii?Q?7pMArxDfEbNnEAV/7+HoxUm7+WG+oOxsbRHZD2KUggvvGZIweYk+Xe9fqtjr?= =?us-ascii?Q?1D9pwOByerzI0jQXlJNAo/3GonyMjpfHWlehtsybH+QsBWxxdtGX50zC2/wC?= =?us-ascii?Q?Wso2uu8c9B27TSrbMPDSxQd0pWuaA7COOpozx2HRq+heXUxx53quLB03AWJL?= =?us-ascii?Q?Gb3i8wRlrZF+nmtIhr4dfj4q04vWb4e0rKkz3O2wpsMLPdQoz0kh7yosPGjL?= =?us-ascii?Q?meWii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7MGdDoaV632nKjb+d7/IDp5s9ZjhLe1syVaENv4r/21YRKxic2r8SoFY0eqbyyXp60sdXH90l0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR06MB2472; 7:pBgLG9g/pN+1SFvr5+Kmzt719Fv/U8qoHbLquIxj/Z/BeRjNr7N0+YVviv6Qbd9AYCACzl54jJHwoGTnH9b20H0OHc9JJUGMLExsusPaLtVTnzomWKhP6kpdISuFYEK6Bkc1cCYdhEz9Z49XhPC9dBtSO6KTTYp6ENwyHov8JJZh6JMZ+5i3BsrN9q4vouqiH0sHYmABDksgKBhOapTrdFqiw/WoEYmhZn5BxZTd2t5kqNUfwtDinR3sXU0YCWCM4WXoyJVt24J/r4xqe3j1PEAiGmD7tFWufKbMrt3g3TK+jDHPwA8pGPxngAgmWl1XW7CBu4KM+srVGzY2D81nUQ== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Apr 2017 18:15:44.9153 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR06MB2472 X-OriginatorOrg: netapp.com Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: <linux-nfs.vger.kernel.org> X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/fs/nfs/callback_xdr.c b/fs/nfs/callback_xdr.c index c782261d86d5..0319230fe1a8 100644 --- a/fs/nfs/callback_xdr.c +++ b/fs/nfs/callback_xdr.c @@ -203,17 +203,12 @@ static __be32 decode_recall_args(struct svc_rqst *rqstp, struct xdr_stream *xdr, status = decode_delegation_stateid(xdr, &args->stateid); if (unlikely(status != 0)) - goto out; + return status; p = read_buf(xdr, 4); - if (unlikely(p == NULL)) { - status = htonl(NFS4ERR_RESOURCE); - goto out; - } + if (unlikely(p == NULL)) + return htonl(NFS4ERR_RESOURCE); args->truncate = ntohl(*p); - status = decode_fh(xdr, &args->fh); -out: - dprintk("%s: exit with status = %d\n", __func__, ntohl(status)); - return status; + return decode_fh(xdr, &args->fh); } #if defined(CONFIG_NFS_V4_1)