Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6442706imm; Mon, 27 Aug 2018 16:18:28 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbKC9abfif+rjPuYbdQGpU6UCCnT1EJq5XTNw5IJFK/S2EbALuJSVUuamxchiz563JYl9bL X-Received: by 2002:a63:9b09:: with SMTP id r9-v6mr5612200pgd.324.1535411908307; Mon, 27 Aug 2018 16:18:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535411908; cv=none; d=google.com; s=arc-20160816; b=nuUEiTB2njoOyv+w98qcnqjZp7NAgzAKfPXOMRuh8Ko5U3JJyv38ZsENY2Wxwjq40a 0GjevgpF6iNr8pix1eZzczyrc0g903SBhoOO0Mj5QU/aDLHk6lknWi5UZb72eRCa+PMz FkYM9b7OtzSLtFFBy2s+DgchRHC5xCqQ4bcFxsrJrVbNOw0bwfOsRf7W4CdrLRDN6Oa2 dCjCIelXMS/GLPJuUQuaa4gzUVGbzitikqq/jZ/wA8HkoRZGQpxHPedbQ0vDeRfAtSOj BNACzKpnxAjuGEBIg+Dcwndzc0MV3HVMgEO4rPU/XX7AJ5gU9pwwY2US+2c+3cg0B7oh OcQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=cF7AKAlpI4BZ3i7k+HziDUNfI5kFH2AeSgb6tL69XIA=; b=i2GpShOiVcM97FWThFEJjCHB7s6fHEDG2Exwl1Qwy4CaoC3FGPM53Vbp3bfsW5e34H DGPFEJW9Px6PzvF+fNBdE9+nzZ0jTj/5mvvL+8sFvALA1lhqDWW2lyu+X1EOYV6gjxh9 Re8Qm3WWjXNaLSjc3nKZcZBYqmTOUfkEdLA7808TGo2iay1xkaq8nmzxYUur085LCDSE U5RK3L5zg8JzTmVJleiFoxkHYNh4AEqKPdfcyupLk0EsEU3OK2F2W6pxRJDbQ+YS/LAO OOw0FYxC4yaBur8aoClxlRq7wNfyhN9j1G5Af8MjrrhGUg4M35dGUup6bSZDUz7a8ZOe xiGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=b0L7Y116; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id q8-v6si530512pgk.600.2018.08.27.16.18.13; Mon, 27 Aug 2018 16:18:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=b0L7Y116; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727518AbeH1DEW (ORCPT + 99 others); Mon, 27 Aug 2018 23:04:22 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:43381 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726994AbeH1DEV (ORCPT ); Mon, 27 Aug 2018 23:04:21 -0400 Received: by mail-ed1-f67.google.com with SMTP id z27-v6so432701edb.10 for ; Mon, 27 Aug 2018 16:15:35 -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; bh=cF7AKAlpI4BZ3i7k+HziDUNfI5kFH2AeSgb6tL69XIA=; b=b0L7Y116nITEhyUArLzAn+Q67c8A6sTpsL612JcM6jBzl1VQyzBQ87oqiLPwxWP91w wahfYcVO/RySfl9JeA83Qs2JdeOYxO8DykzWb+nlaND0ggPvzG1s+qSmTZluZLtDeXtv iTmoZUKUiKP8VDYjL7MhV1Btvw+7iMgJe0qvN4+MjFffKX8GINejZqjt0nLoovpWNJJH jQx+9bjMmOVn30U0wrlqqiu2mHxnYJYjjxazZ36M+plYpaCcwOxWESflFw6wA3/at7Lz q1KYZbcSrWu2Bv8NG+w0QrSMMqXTh5Lk1RxKDqxvPfhWabdY9OkrVN5t2ldU23iPVJ8H 7d4w== 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; bh=cF7AKAlpI4BZ3i7k+HziDUNfI5kFH2AeSgb6tL69XIA=; b=DCGVgjrDW4xQgHNMPkU2T8tSwKeNG6tD3FdZUivfYTMXoH+2gS7pzHAh9u1WoNMiUl kg+sm+Hx3xynORxNO+bIfkhXnyhB8gvh6cQ8Y5NVceFbpBL+3U5kGKJiN7lySjzHoOXf Bnzx+vkE16iEhck3k8fB5HHBfjeD+aOnttH1QcUgW8cjh9RhIHex8Na4KTvfkAaZDELF VUOZNAeAAcHiEsP0VKZWB0osnh43Cf64JxVsYuXKUPtoELay4Mgsgk7WkGfpnuU3Qy4O SSD9/c3m/nyfjAVlw+OcMPgN+5poAI1zE4ElItWp9oklxtKHcNtpB2IGLjcusz6uc/gW RBfg== X-Gm-Message-State: APzg51Cd8sAlqfynv1ggY+IU7FaIxttkGTE3vEJSe0Vb/gE22ePxjUCu qa5fkFCGeiesJWOiKiYXbQ== X-Received: by 2002:a50:8d0e:: with SMTP id s14-v6mr18758063eds.55.1535411734540; Mon, 27 Aug 2018 16:15:34 -0700 (PDT) Received: from localhost.localdomain (nat4-minsk-pool-46-53-177-92.telecom.by. [46.53.177.92]) by smtp.gmail.com with ESMTPSA id u3-v6sm173918edo.44.2018.08.27.16.15.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Aug 2018 16:15:34 -0700 (PDT) From: Alexey Dobriyan To: akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, Alexey Dobriyan Subject: [PATCH 03/13] proc: rename "p" variable in proc_readfd_common() Date: Tue, 28 Aug 2018 02:14:53 +0300 Message-Id: <20180827231503.26899-3-adobriyan@gmail.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20180827231503.26899-1-adobriyan@gmail.com> References: <20180827231503.26899-1-adobriyan@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use slightly more obvious "tsk" and prepare for changes in printing. 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.16.4