Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4021573ybz; Mon, 20 Apr 2020 14:02:51 -0700 (PDT) X-Google-Smtp-Source: APiQypL77jaEuNOgHKbwdmJEAtR8h5ykA89j0mq0ENQm9z+MiOK/wxUbhSUS/MOHmnZjZfAO0lnk X-Received: by 2002:a17:906:c839:: with SMTP id dd25mr17581878ejb.164.1587416571500; Mon, 20 Apr 2020 14:02:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587416571; cv=none; d=google.com; s=arc-20160816; b=PNFWMuOgusuLgESXVqU68dZTLYIQ+mhqROP6+h+bf/IzspSlGAK6i4a82cWCkmCEI8 1aZWp3MY2b63AdCdX/piXOpAvBqwxdde0dW+HBKQx29REgjgc822dtA4rN8x3PMbAN01 MbIHYvQDLvM1vFNIUxidjdOlFWAt98uswPX4/TM11D7TJrPxFFOhybNzWIIYOroQt1hd WDjQcHbGEVi4NYkCvNw9M59fPG0StPQpYBkKreptVJY4e6VTrxjn40C4/0rrshLkwNs3 qL7Wdnvs90Fl+QTwlH2WnBpGCUzc95KMNYEv9Ae+nW9N0qQIp9cxIgvzqJHCbBM1kRaG Oy6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SHn0IUO/wMyWf4dmZUNBbUc0aQhvnXEYVuFtFRS3HPk=; b=nU76sHoTBt8C/e0nJnPqlUILfaIcfBERoriBibNFFGzhiEh9DarPO0FSGw5kL1MuDD hBTkDo1P9Ez5X0DK1s1lj4C2wsw3U1uBkxFk7ZIDv2VVueBY+RcwS0W81gJRqr0fr/gX sPTM5dxj0yp77FYbM1VTlDdz+1IruDKprruNUbL7I82nO8JJMNVIED9ddARJQjFtUT66 +N6DUBFn3AVhv1AOvg6Fn6ZWuznHmpvXKbjvmHp/Vyxio6rDvErUa2QjwAZ5VJD1hAwL FDEBt3I3t7gvej+ezlK3cCIzRTQWUVBUMTBZrSD4PVA25LpyMSp4dfed8sZGnyiG5Pxa hkCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sYOvvc8p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k5si348532edr.491.2020.04.20.14.02.28; Mon, 20 Apr 2020 14:02:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sYOvvc8p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728315AbgDTU6s (ORCPT + 99 others); Mon, 20 Apr 2020 16:58:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727811AbgDTU6R (ORCPT ); Mon, 20 Apr 2020 16:58:17 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54E34C061A0C; Mon, 20 Apr 2020 13:58:17 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id x18so13971900wrq.2; Mon, 20 Apr 2020 13:58:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SHn0IUO/wMyWf4dmZUNBbUc0aQhvnXEYVuFtFRS3HPk=; b=sYOvvc8pHTWkwLYyRhZCTaQv3HQfMB2rRRWZeysxNcQYbmmUOp2p3z72BwtJKY42cO D9O4GMHQugm296ZulvGVy0+bGU4QYzNx8wYsTtxch2rQk1pGGo8AUetdwwzkg2mRKPMI So4vh3Kn155oQtk193g2rUc5BHZ2DRoNrUtEqT1p9T1TZ0e41zhabPWE2PYPe92Tm7Nh O59mOM3iTwUAmkO4rPafQr8wG/VpIOXxY61N4mh9C0MI8xSONe68JPzqCDOjRi0o4UtO 3FlMKKGoq2fd1gc0ocdRS+E5OdTykTDNftuMU95Foie7gc8he7WYm7uqQ7+CzfKHpXVX lkHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SHn0IUO/wMyWf4dmZUNBbUc0aQhvnXEYVuFtFRS3HPk=; b=eno/8QSMYAb2omJEbKdVJ80Q3EedQLwHwKf7nUPW2odXfl0eByWY81oS3aDEdtBlXe OVZVQu/5+rrrFaEylRCMf3j2lckNJjhZbSN9JNN81KkVMUeTJO8BTVk6JsMJkr23dyKR odDZw/91LsV3VOe7VGCiH/hmj5F1D04zQrwvtC6J1hJpeHXkpbJqY46AaEl3kp1aVRET a19XnSPCzQcZYLTx8nj0PAUYdnhgr/WwncOMnHI4DiR70zzlnU8MRgbrxYun9kWZ9AK4 fUSetp/ax/AhN1UwNgjdLJ/51KOAbUlBQirvIOO48gultjGrYr5SZv2X3MSLBwsbYJVf e6sA== X-Gm-Message-State: AGi0PuZsocrNEg+2t0LYxROvxNpT3XU5aHQozt3DQwPYK4QBj8VjVbpJ czE5sq9iWpfRLXBKc3RoMg== X-Received: by 2002:a5d:4ac6:: with SMTP id y6mr20438480wrs.212.1587416296043; Mon, 20 Apr 2020 13:58:16 -0700 (PDT) Received: from avx2.telecom.by ([46.53.249.74]) by smtp.gmail.com with ESMTPSA id m8sm863069wrx.54.2020.04.20.13.58.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Apr 2020 13:58:15 -0700 (PDT) From: Alexey Dobriyan To: akpm@linux-foundation.org Cc: adobriyan@gmail.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, pmladek@suse.com, rostedt@goodmis.org, sergey.senozhatsky@gmail.com, andriy.shevchenko@linux.intel.com, linux@rasmusvillemoes.dk Subject: [PATCH 09/15] proc: s/p/tsk/ Date: Mon, 20 Apr 2020 23:57:37 +0300 Message-Id: <20200420205743.19964-9-adobriyan@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200420205743.19964-1-adobriyan@gmail.com> References: <20200420205743.19964-1-adobriyan@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "p" will be used for pointeg to string start, use "tsk" as the best identifier name. Signed-off-by: Alexey Dobriyan --- fs/proc/fd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/proc/fd.c b/fs/proc/fd.c index 81882a13212d..e098302b5101 100644 --- a/fs/proc/fd.c +++ b/fs/proc/fd.c @@ -228,16 +228,16 @@ static struct dentry *proc_lookupfd_common(struct inode *dir, static int proc_readfd_common(struct file *file, struct dir_context *ctx, instantiate_t instantiate) { - struct task_struct *p = get_proc_task(file_inode(file)); + struct task_struct *tsk = get_proc_task(file_inode(file)); struct files_struct *files; unsigned int fd; - if (!p) + if (!tsk) return -ENOENT; if (!dir_emit_dots(file, ctx)) goto out; - files = get_files_struct(p); + files = get_files_struct(tsk); if (!files) goto out; @@ -259,7 +259,7 @@ static int proc_readfd_common(struct file *file, struct dir_context *ctx, len = snprintf(name, sizeof(name), "%u", fd); if (!proc_fill_cache(file, ctx, - name, len, instantiate, p, + name, len, instantiate, tsk, &data)) goto out_fd_loop; cond_resched(); @@ -269,7 +269,7 @@ static int proc_readfd_common(struct file *file, struct dir_context *ctx, out_fd_loop: put_files_struct(files); out: - put_task_struct(p); + put_task_struct(tsk); return 0; } -- 2.24.1