From patchwork Sun Jul 8 21:01:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Biggers X-Patchwork-Id: 10513323 Return-Path: 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 86731603D7 for ; Sun, 8 Jul 2018 21:06:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 76B72289CE for ; Sun, 8 Jul 2018 21:06:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 67F49289E0; Sun, 8 Jul 2018 21:06:27 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=unavailable 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 26596289CE for ; Sun, 8 Jul 2018 21:06:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933495AbeGHVFu (ORCPT ); Sun, 8 Jul 2018 17:05:50 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:45470 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932974AbeGHVFq (ORCPT ); Sun, 8 Jul 2018 17:05:46 -0400 Received: by mail-pf0-f193.google.com with SMTP id i26-v6so719214pfo.12; Sun, 08 Jul 2018 14:05:45 -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=gLZnuyIOr1znETYlyoQHZ3GgUmU6Mx7N6q8g0vwm/Z8=; b=c3qWdJHsDVnkgjOxAtzNs08f/9Eld36izaV46L+oP41f2F4YQb8klruGopODQ1U/5G +cYjfoKS7/MjuD1gM8mFhubojMFeY98I+NYwIt6ZN6EbxQ7tWRUL6XaLTY+yv96h6+cq lQrhlhvBf2myKMDltBm3sKdylln9SopCUlJXV5jWWjqay7gqbGl1acPzswrl7rb0a9SJ +M49Yyi362tYq+7rsIFvnacHXVFIBL2v7xkd4LmECqvZTsDfR2Q1ZYKvksR60U/K4x87 adJvfM9YEi+dpKqOy7hCnOcbQCSwnHjgMiVwmTAH+wcW7Cb4nlH4QQfHIqHpCjercOvp utnw== 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=gLZnuyIOr1znETYlyoQHZ3GgUmU6Mx7N6q8g0vwm/Z8=; b=gV9zEP5QBXtk3zN9nCxp56grPtvNMeEYDu9gfOZKWoJUYVY0jzdBiSJ7ChUTzkUuFf FCBau3wpLojQ7y195S3TB26Z1WOuQPdXpKaQSjz0JzMLcyccsyJdCcKCMDu8nE2TkU1x 7KpnlVlRL3dHWc3l43/cjU8mar5ZhpCryefyIWxZYcWMziUlS5iOTZm67/Bw+fBrk2LZ zvuJ1OcWnE9SjUzUOxQ/OrzNp+uFp0iJ93ZrLRXwwDR9ZUO78va+DsEyiTe1oNsq8rab vBiynBSoHhpD97CretxEuqEw9rwA8Hh4amGqHLlQojAt1KQ79sV515OWZs6tdxnAoXqz Z0tA== X-Gm-Message-State: APt69E1Ccgfyn2qCQlLbPvAbVpXVyG2/jxm6F4VLmxD60i+pcF5cjVCW 9Rspaub+a6e58AyZWJ6sKYI= X-Google-Smtp-Source: AAOMgpcqB6QcAMrVHVonW9fqbD7jkE27GUikz7GWzos54QKXJwmZayOAfG+U7E65WH8iRPQEfchg5Q== X-Received: by 2002:a63:1a20:: with SMTP id a32-v6mr10332287pga.446.1531083945306; Sun, 08 Jul 2018 14:05:45 -0700 (PDT) Received: from sol.localdomain (c-67-185-97-198.hsd1.wa.comcast.net. [67.185.97.198]) by smtp.gmail.com with ESMTPSA id x68-v6sm23355681pfb.138.2018.07.08.14.05.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Jul 2018 14:05:44 -0700 (PDT) From: Eric Biggers To: David Howells , Alexander Viro , linux-fsdevel@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Eric Biggers Subject: [PATCH 15/18] fsopen, fspick: rename fsopen_create_fd() to fscontext_create_fd() Date: Sun, 8 Jul 2018 14:01:51 -0700 Message-Id: <20180708210154.10423-16-ebiggers3@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180708210154.10423-1-ebiggers3@gmail.com> References: <20180708210154.10423-1-ebiggers3@gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Eric Biggers It's used for both fsopen() and fspick(), not just fsopen(). Signed-off-by: Eric Biggers --- fs/fsopen.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/fsopen.c b/fs/fsopen.c index 02edb4705fac2..1fbd8b0ca194b 100644 --- a/fs/fsopen.c +++ b/fs/fsopen.c @@ -212,7 +212,7 @@ const struct file_operations fscontext_fs_fops = { /* * Attach a filesystem context to a file and an fd. */ -static int fsopen_create_fd(struct fs_context *fc, unsigned int o_flags) +static int fscontext_create_fd(struct fs_context *fc, unsigned int o_flags) { int fd; @@ -273,7 +273,7 @@ SYSCALL_DEFINE2(fsopen, const char __user *, _fs_name, unsigned int, flags) if (ret < 0) goto err_fc; - return fsopen_create_fd(fc, flags & FSOPEN_CLOEXEC ? O_CLOEXEC : 0); + return fscontext_create_fd(fc, flags & FSOPEN_CLOEXEC ? O_CLOEXEC : 0); err_fc: put_fs_context(fc); @@ -328,7 +328,7 @@ SYSCALL_DEFINE3(fspick, int, dfd, const char __user *, path, unsigned int, flags goto err_fc; path_put(&target); - return fsopen_create_fd(fc, flags & FSPICK_CLOEXEC ? O_CLOEXEC : 0); + return fscontext_create_fd(fc, flags & FSPICK_CLOEXEC ? O_CLOEXEC : 0); err_fc: put_fs_context(fc);