Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1207970imm; Fri, 8 Jun 2018 11:51:49 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK/vF/+xkOISIhF1U7oHXj+tl8e5TZ8ymeOPJKLKJV2pm7jVcqZ1BF3869uibrtwBw6IFnq X-Received: by 2002:a63:7707:: with SMTP id s7-v6mr6436427pgc.426.1528483909582; Fri, 08 Jun 2018 11:51:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528483909; cv=none; d=google.com; s=arc-20160816; b=RpZqhhNCsQ7cVclYjahVaUf9t3C0GZ9mWDPZOKBu7tLhao9zyAtrG8O0vM0s4+pXmC b//2+x+fjq5/1IijXjNSKMwj9h4nu0uOpwwwOXcbfXydEhV08++O0lAZn9NaSvakpGQg VBZ5dGTAjgDNh35E/IkTaLCOgjSndo45U2/mvCyMnmzJATH0tyDvYnvMLnXoOSNHUctI m9sDeA/ZrvBCM9nH8zx6WJn9yrt8xMJc6e/+3ksDUTpSCDlPUznUZCMtmC5B21ekBRWi dYhxioMay3sIOYfquOGVQ3FzxqlLHpoXQAGzfaw28WCSwN38i/AMw1AuPltSbhYHGByA dijw== 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:arc-authentication-results; bh=uDvSjk/kNboHx/ORf4tfOpMYo8DBmvqMLpKAwRBIFSk=; b=FnA/RCSCcHoplEKbJRs8Gxt514H14IuQWMtjt6ALg3hUMlQ+h/bH9LeTR/dkpIPtp+ DZQ9XcnzilH5AOwdzDLMkesltJKUihDkeiVzaTncpsIhap+xGU1hMp6RtgghGkZOnVaj 94Dz9j/J2CysWvu1s2XMcxKgaArNkADoEptlhgewcmPqHSM26Ua7ddfGk3a1YFkn57ir thWLK16gs7Rj+WOPl/98tIFJVNMtnpoS3cfyPkefQv8heYAmcJAaTPzP3cb01HJh3Adq JNGNp5Pn9w03D060FkADjTjKX+C9Plt7K5cI3nP40oOSSe6Rf8XwO4U/6+NbeCPyEe8m bj1Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 91-v6si38388516ple.308.2018.06.08.11.51.35; Fri, 08 Jun 2018 11:51:49 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752968AbeFHSuX (ORCPT + 99 others); Fri, 8 Jun 2018 14:50:23 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:53786 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752412AbeFHSuU (ORCPT ); Fri, 8 Jun 2018 14:50:20 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.87 #1 (Red Hat Linux)) id 1fRMSp-0006NQ-JK; Fri, 08 Jun 2018 18:50:19 +0000 From: Al Viro To: Linus Torvalds Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 02/13] rename filp_clone_open() to file_clone_open() Date: Fri, 8 Jun 2018 19:50:08 +0100 Message-Id: <20180608185019.24472-2-viro@ZenIV.linux.org.uk> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20180608185019.24472-1-viro@ZenIV.linux.org.uk> References: <20180608184842.GD30522@ZenIV.linux.org.uk> <20180608185019.24472-1-viro@ZenIV.linux.org.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Al Viro 'filp' naming convention is bogus; sure, it's "file pointer", but we generally don't do that kind of Hungarian notation. Some of the instances have too many callers to touch, but this one has only two, so let's sanitize it while we can... Signed-off-by: Al Viro --- drivers/gpu/drm/drm_lease.c | 2 +- fs/binfmt_misc.c | 2 +- fs/open.c | 4 ++-- include/linux/fs.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/drm_lease.c b/drivers/gpu/drm/drm_lease.c index ce281d651ae8..bb5f817baf0b 100644 --- a/drivers/gpu/drm/drm_lease.c +++ b/drivers/gpu/drm/drm_lease.c @@ -553,7 +553,7 @@ int drm_mode_create_lease_ioctl(struct drm_device *dev, /* Clone the lessor file to create a new file for us */ DRM_DEBUG_LEASE("Allocating lease file\n"); - lessee_file = filp_clone_open(lessor_file); + lessee_file = file_clone_open(lessor_file); if (IS_ERR(lessee_file)) { ret = PTR_ERR(lessee_file); goto out_lessee; diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c index a41b48f82a70..86ebd9dc9469 100644 --- a/fs/binfmt_misc.c +++ b/fs/binfmt_misc.c @@ -205,7 +205,7 @@ static int load_misc_binary(struct linux_binprm *bprm) goto error; if (fmt->flags & MISC_FMT_OPEN_FILE) { - interp_file = filp_clone_open(fmt->interp_file); + interp_file = file_clone_open(fmt->interp_file); if (!IS_ERR(interp_file)) deny_write_access(interp_file); } else { diff --git a/fs/open.c b/fs/open.c index d0e955b558ad..96ab60d52303 100644 --- a/fs/open.c +++ b/fs/open.c @@ -1063,7 +1063,7 @@ struct file *file_open_root(struct dentry *dentry, struct vfsmount *mnt, } EXPORT_SYMBOL(file_open_root); -struct file *filp_clone_open(struct file *oldfile) +struct file *file_clone_open(struct file *oldfile) { struct file *file; int retval; @@ -1081,7 +1081,7 @@ struct file *filp_clone_open(struct file *oldfile) return file; } -EXPORT_SYMBOL(filp_clone_open); +EXPORT_SYMBOL(file_clone_open); long do_sys_open(int dfd, const char __user *filename, int flags, umode_t mode) { diff --git a/include/linux/fs.h b/include/linux/fs.h index 81fe0292a7ac..8f0b4667ebf1 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -2401,7 +2401,7 @@ extern struct file *filp_open(const char *, int, umode_t); extern struct file *file_open_root(struct dentry *, struct vfsmount *, const char *, int, umode_t); extern struct file * dentry_open(const struct path *, int, const struct cred *); -extern struct file *filp_clone_open(struct file *); +extern struct file *file_clone_open(struct file *); extern int filp_close(struct file *, fl_owner_t id); extern struct filename *getname_flags(const char __user *, int, int *); -- 2.11.0