From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18FF8C32771 for ; Mon, 27 Jan 2020 10:15:34 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DFF942087F for ; Mon, 27 Jan 2020 10:15:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="tpiOhf+5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DFF942087F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-kernel-mentees-bounces@lists.linuxfoundation.org Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id D45A685660; Mon, 27 Jan 2020 10:15:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JFjoLu02SyFt; Mon, 27 Jan 2020 10:15:33 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by fraxinus.osuosl.org (Postfix) with ESMTP id 74B06858BA; Mon, 27 Jan 2020 10:15:33 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 65033C1D85; Mon, 27 Jan 2020 10:15:33 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 834B7C0171 for ; Mon, 27 Jan 2020 10:15:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 803B485660 for ; Mon, 27 Jan 2020 10:15:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gOGJ0HS1kFYT for ; Mon, 27 Jan 2020 10:15:32 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 0514185657 for ; Mon, 27 Jan 2020 10:15:32 +0000 (UTC) Received: by mail-pf1-f194.google.com with SMTP id 185so919033pfv.3 for ; Mon, 27 Jan 2020 02:15:32 -0800 (PST) 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=2ffH0K8BFmkOC/vLFRY737ndfJQRlqPy+w9ONVEocJo=; b=tpiOhf+569/miNYtRdQIQc0t5PkG61c9/QOKwLgZLiok6RPr5VJQq/nHvYYeJBJa/3 PQhgiqwJaR7JM9sIKZozopyZCuvLqCrivfOHKszGF80AR1CQjywguqt4IRcEbnUnLaf/ q5YncfI/H2rwGi1DnaIRVCjm8BAQu1OHKCg4HIhwFFVpdhfrDootcccKHqhYoL9mudmX fPKAFRUZpfCd2567jSaSgbNLD7+yFVleJFdzmjPEqsD3YG8796uvaFDmjlRIuB5nFSPt gKe6Zqy/Zt7UJp0d7e3Br7kXhJh6VQ3eCkf24Y9IGpyTyeqwB4foMFfSPoj/0NC7cODB HHqw== 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=2ffH0K8BFmkOC/vLFRY737ndfJQRlqPy+w9ONVEocJo=; b=lns9EieQDMa34IgbVWDM3NTrH+x4N4TCqjpt0tOxGKI4Qe3CHrDTTFAeaXbYg8TwFW mPNwnUkmQFs8vnpJNE8yvhw2OupozNoRPZNyFLcieN4Ew22D/XYKmoO2rE52rn226+Q8 5QzTfc7th4wwxVMvY+6SzdlMZmNuQznPYjZv4DM8BiqRS6mns+IuAFlYvk4DemtrNDSy 5xKzItW/TS3vQmorJNvvy+uhkMk/LAEB6PqefSmbsxwEXSG8kg1SPIVKkPEQsbup23pi bAd+abKBGzTY0LwKKct+ibFHyDgR5TTtJmDVmF0LXRuJc9BwR1KJ/ya/UL9DIBapDqB2 F5Qg== X-Gm-Message-State: APjAAAXbQ7ctpsYGiXojl0993fEm4MSzOY0RFf6GKsAgzXVt301eHbzT TC/v+kXrTrAmWD+ZxHOo3xI= X-Google-Smtp-Source: APXvYqyeU4HI+w6Zs4rhoa0d+PXReVp8dIkqtpHlKYuVreJmGlb4KefHZiLlPCdD8iv/YWTXQSPw1Q== X-Received: by 2002:a63:1d1a:: with SMTP id d26mr17685427pgd.98.1580120131638; Mon, 27 Jan 2020 02:15:31 -0800 (PST) Received: from localhost.localdomain ([2405:205:c902:a5e9:3956:8df2:aee5:9cf6]) by smtp.gmail.com with ESMTPSA id s15sm15504138pgq.4.2020.01.27.02.15.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jan 2020 02:15:31 -0800 (PST) From: Pragat Pandya To: valdis.kletnieks@vt.edu, gregkh@linuxfoundation.org Date: Mon, 27 Jan 2020 15:43:35 +0530 Message-Id: <20200127101343.20415-15-pragat.pandya@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200127101343.20415-1-pragat.pandya@gmail.com> References: <20200127101343.20415-1-pragat.pandya@gmail.com> Cc: devel@driverdev.osuosl.org, Pragat Pandya , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org Subject: [Linux-kernel-mentees] [PATCH 14/22] staging: exfat: Rename variable "FreeClusters" to "free_clusters" X-BeenThere: linux-kernel-mentees@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-kernel-mentees-bounces@lists.linuxfoundation.org Sender: "Linux-kernel-mentees" Change all the occurrences of "FreeClusters" to "free_clusters" in exfat. Signed-off-by: Pragat Pandya --- drivers/staging/exfat/exfat.h | 2 +- drivers/staging/exfat/exfat_super.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/exfat/exfat.h b/drivers/staging/exfat/exfat.h index 36baa4c9a98a..4cc5c1914864 100644 --- a/drivers/staging/exfat/exfat.h +++ b/drivers/staging/exfat/exfat.h @@ -245,7 +245,7 @@ struct vol_info_t { u32 fat_type; u32 cluster_size; u32 num_clusters; - u32 FreeClusters; + u32 free_clusters; u32 UsedClusters; }; diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c index c5edf09f1123..7a8b876414bd 100644 --- a/drivers/staging/exfat/exfat_super.c +++ b/drivers/staging/exfat/exfat_super.c @@ -498,7 +498,7 @@ static int ffsGetVolInfo(struct super_block *sb, struct vol_info_t *info) info->cluster_size = p_fs->cluster_size; info->num_clusters = p_fs->num_clusters - 2; /* clu 0 & 1 */ info->UsedClusters = p_fs->used_clusters; - info->FreeClusters = info->num_clusters - info->UsedClusters; + info->free_clusters = info->num_clusters - info->UsedClusters; if (p_fs->dev_ejected) err = -EIO; @@ -3352,7 +3352,7 @@ static int exfat_statfs(struct dentry *dentry, struct kstatfs *buf) info.cluster_size = p_fs->cluster_size; info.num_clusters = p_fs->num_clusters - 2; info.UsedClusters = p_fs->used_clusters; - info.FreeClusters = info.num_clusters - info.UsedClusters; + info.free_clusters = info.num_clusters - info.UsedClusters; if (p_fs->dev_ejected) pr_info("[EXFAT] statfs on device that is ejected\n"); @@ -3361,8 +3361,8 @@ static int exfat_statfs(struct dentry *dentry, struct kstatfs *buf) buf->f_type = sb->s_magic; buf->f_bsize = info.cluster_size; buf->f_blocks = info.num_clusters; - buf->f_bfree = info.FreeClusters; - buf->f_bavail = info.FreeClusters; + buf->f_bfree = info.free_clusters; + buf->f_bavail = info.free_clusters; buf->f_fsid.val[0] = (u32)id; buf->f_fsid.val[1] = (u32)(id >> 32); buf->f_namelen = 260; -- 2.17.1 _______________________________________________ Linux-kernel-mentees mailing list Linux-kernel-mentees@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees