From patchwork Mon Oct 2 16:29:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zheng Lv X-Patchwork-Id: 9981009 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 D9783602A0 for ; Mon, 2 Oct 2017 16:29:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CB8952847D for ; Mon, 2 Oct 2017 16:29:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C05DA28843; Mon, 2 Oct 2017 16:29:32 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham 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 0998628821 for ; Mon, 2 Oct 2017 16:29:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751731AbdJBQ33 (ORCPT ); Mon, 2 Oct 2017 12:29:29 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:35128 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751384AbdJBQ33 (ORCPT ); Mon, 2 Oct 2017 12:29:29 -0400 Received: by mail-pf0-f193.google.com with SMTP id i23so6221817pfi.2 for ; Mon, 02 Oct 2017 09:29:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=uIy9eoz4+U2zH/4E+IA5qo/eoH1PsA1ly5+Q+O32cUc=; b=CLXN2UmgQnAe4IAp0NX1oOMLhIT+4oL3m95PBbKOtGny9vnmMTge3vYw1BXr70C59u IL8IXlbkMTLDVt5Oq9sfCg7Pc1pazQ6RRBnDVFTBbDNQP1z0on5qyzdIy5969zPrEnpv /ZuNXNAH1RmuHt4FLjOtprcWZsuVVVcJdwCHgFuVUk7/NB9MYYgD9ltC9Dv8D1LGSz1i sXMZ3l4JpZ9ufmYHbHLj/HG+lVzyTZlyIYkTGm+HwllbCyTcHaCv8ePtEW9bjA7SNPmi Ic8E1Raan3J2GKK3AicBgZgiELGIiFB2ijvtfgEMdQJFa6Ba0N/cyBYbAhwluyUdHs0g fszg== 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:subject:message-id:mime-version :content-disposition:user-agent; bh=uIy9eoz4+U2zH/4E+IA5qo/eoH1PsA1ly5+Q+O32cUc=; b=rM1q1ZLnfaGKMMaHWFr34IWZRe+9wVAM2O2uxVQ+mkBZo5HJQeAw5TMmUwr+NSlTZ0 e/JvDT4YaizGc2i3gVfb7wHMXKk5/+2DvrXTqxXlo8KqolOfnOCaAWnHCkEv7fOBt9En 17ViqcTcaEqx3TOb/XyugzdOIsTd7+u5wsVZ5q96I3PoMnWAscQgkZnwOzLfzmqgJr4e pRNAj+v0Rh8fh8Vy5ug7eEZ1Jg626u996IMKCiRnBsjBuj5D1GHXZdF1w1yq20wCIFAU 2fbQFJ8+r9SsgmHMJEc0lH1tRohlEcQnSyNOOwEM9Fz5KtPbiPfDWizNpODgksAIKjD+ o68A== X-Gm-Message-State: AMCzsaUZMh/5IuaKbfPSL67G0kJtjHVw8rWNnintPjSq3c1PGR9D53Bl brPP8LEGUDtMxbxDIw9Y+bOKUJSq X-Google-Smtp-Source: AOwi7QBUuDZ9C9vT/KMsXXveLFoqfF2NJos5KR3nCLlBjzuAuQ8tSd9cOrpXPd6X26Lj4Z6x2VEiqw== X-Received: by 10.98.181.5 with SMTP id y5mr4851225pfe.252.1506961768468; Mon, 02 Oct 2017 09:29:28 -0700 (PDT) Received: from lvzheng-thinkpad ([138.68.10.145]) by smtp.gmail.com with ESMTPSA id m67sm17562791pfc.38.2017.10.02.09.29.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Oct 2017 09:29:27 -0700 (PDT) Date: Tue, 3 Oct 2017 00:29:22 +0800 From: Zheng Lv To: linux-fsdevel@vger.kernel.org Subject: [PATCH] fat: fix stale comment for msdos_rename Message-ID: <20171002162922.GA6724@lvzheng-thinkpad> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.1 (2017-09-22) 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 msdos_rename is no longer a wrapper for rename_same_dir & rename_diff_dir. The code was refactored long ago. Cc: OGAWA Hirofumi Cc: Jiri Kosina Signed-off-by: Zheng Lv --- fs/fat/namei_msdos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fat/namei_msdos.c b/fs/fat/namei_msdos.c index 7d6a105d601..4b06595c144 100644 --- a/fs/fat/namei_msdos.c +++ b/fs/fat/namei_msdos.c @@ -594,7 +594,7 @@ static int do_msdos_rename(struct inode *old_dir, unsigned char *old_name, goto out; } -/***** Rename, a wrapper for rename_same_dir & rename_diff_dir */ +/***** Rename a file */ static int msdos_rename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags)