From patchwork Sat Mar 17 21:06:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Phillip Potter X-Patchwork-Id: 887332 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-cifs-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=philpotter.co.uk Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=philpotter-co-uk.20150623.gappssmtp.com header.i=@philpotter-co-uk.20150623.gappssmtp.com header.b="pruaTxWY"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 403Zdd3SnPz9sCv for ; Sun, 18 Mar 2018 08:07:01 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751487AbeCQVHA (ORCPT ); Sat, 17 Mar 2018 17:07:00 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:44469 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751463AbeCQVG7 (ORCPT ); Sat, 17 Mar 2018 17:06:59 -0400 Received: by mail-wr0-f194.google.com with SMTP id u46so861294wrc.11 for ; Sat, 17 Mar 2018 14:06:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philpotter-co-uk.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=oxkFjN402SA9L8K0rpx6/Pgtskv2kU9DuWkl/fzuSpM=; b=pruaTxWY2Sz8eZZW5h74egDAS+Qb2gwop8SjUGTMKKNjiHvMIjmv0gds3hLuT1rKVt i6Iev+Z8EwMKy2t73Xib+JkHoYH6qq3E7eC6cNx7hYm8buDuDpIkxN1vPeN6fQIevC4h HK1vYAWMG9fgBIh5YompiSrgwv05XmY+jy+b7w3eztZpl+dpb71/7Sb3q5kCGEo9i6DY OSltBg59ViMiNcPEFcKZlB7490bkBd5Rt8N/6NKSvYngP+OU4gfc82cHUld/tX4UYoi0 fSYrRjpEiilphItF/URQyKASOFCXF9FnBesdiSdMwEJ84NdABcjcFD8uM+eN55caQT7f gBLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=oxkFjN402SA9L8K0rpx6/Pgtskv2kU9DuWkl/fzuSpM=; b=ACxqpAvZW8PyQcAvpSoBwch6yFgsWeh+KgG/mgWtRGHE1Q535mqC172guE4zfzLrFB W2yAnipJR5hPIfaFTh3b9WBpRJyDasPt/e+DpRBV6AbneEikFOiWd5fqAR3PTpZ6F4JO YnjSUBIBtp0dI/BLGI3Lil/gT4NduHek850Xm4UVfXmVEQoh7qZvTycvnE63SgOVzng5 d/zSlek/lSpCuQQt+bAfqMicrr5tymw0h0qA9Myc4mNgzzH02RX27PREAB111U7zLknz RwruFlB2NviBlgYfWCuGzuV9qTz9JqLm4p91hvcRcaAIuK+bRnDdKqcizFA3+nGT8IQH 5wUA== X-Gm-Message-State: AElRT7HlY4e6/QRpaBYKBMXQrPWjHnKC290Ec+LDPEwrfMi+B0qW3S6Y SoNoPMRUui096zQ0+LYBb+DyX2OT/1Q= X-Google-Smtp-Source: AG47ELt5MreOOaT9Pug/UE9gAl494VlmclhyeZhTxDJbaVnVFuykpAMQYBnXAtYwK76M8QUNSzi8/Q== X-Received: by 10.223.197.11 with SMTP id q11mr5008912wrf.213.1521320818161; Sat, 17 Mar 2018 14:06:58 -0700 (PDT) Received: from pathfinder (62-64-243-127.dynamic.dsl.as9105.com. [62.64.243.127]) by smtp.gmail.com with ESMTPSA id m62sm10081729wmi.19.2018.03.17.14.06.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 17 Mar 2018 14:06:57 -0700 (PDT) Date: Sat, 17 Mar 2018 21:06:56 +0000 From: Phillip Potter To: sfrench@samba.org Cc: linux-cifs@vger.kernel.org Subject: [PATCH] fs: cifs: Replace _free_xid call in cifs_root_iget function Message-ID: <20180317210656.GA14436@pathfinder> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org Modify end of cifs_root_iget function in fs/cifs/inode.c to call free_xid(xid) instead of _free_xid(xid), thereby allowing debug notification of this action when enabled. Signed-off-by: Phillip Potter --- fs/cifs/inode.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index 8f9a8cc7cc62..c98a852180b1 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c @@ -1066,10 +1066,7 @@ struct inode *cifs_root_iget(struct super_block *sb) out: kfree(path); - /* can not call macro free_xid here since in a void func - * TODO: This is no longer true - */ - _free_xid(xid); + free_xid(xid); return inode; }