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.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 A6881C32771 for ; Mon, 27 Jan 2020 10:15:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 71E3720702 for ; Mon, 27 Jan 2020 10:15:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LKAVV8Qe" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729809AbgA0KPw (ORCPT ); Mon, 27 Jan 2020 05:15:52 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:41964 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726518AbgA0KPv (ORCPT ); Mon, 27 Jan 2020 05:15:51 -0500 Received: by mail-pg1-f193.google.com with SMTP id x8so4911002pgk.8; Mon, 27 Jan 2020 02:15:51 -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=6mzLI+wtc2kOuCtFneU5ySfiV5hsQ4urxaDglWXuygk=; b=LKAVV8Qe8yGoWxvADsAz8TKDZHz9mguSb91w/doXwhTLS7p0/xtnmPXRqGKbpXb0OS i+lFjKus8wnR0C+bB48IC8R+wBj6SWDMynVx91QtPhD7elRxPktRvVqm5h0ijtL8Bu6L kt8BGfh/r/riXiF4N+NEw7r0vv1ALJpery+yd5ubfUbIz4JYc2NugWksPYStjcTmF9wm 26Mc0/qrv34WzyJgzfj/l3rb+/Rpj6t3pt56x0jdhKiaZT++7gK2Sx1YRQZG8nJkf80s 8HXmQbGhroUjRKwfZCYM77c2aCurM1qHj8lHhCe63sTSUP3e1glnaS8Z+JOYF84VOG1p 7EXA== 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=6mzLI+wtc2kOuCtFneU5ySfiV5hsQ4urxaDglWXuygk=; b=ngMKU3VJ1OFQR2Q0WmBVpS2Gjypc+WbUVG27uPLZPjEEXRwhctRuPAOKPrJVzorv0K hEJkpQtHIZSlqInYE0eavRk+Kv+C6DySjFIyh9hKwomm3TH3X7HkbmC8dPsExkt8xGj4 kGo4wGiFywD97R9qeuywMTbeLdXjfd6YtXZmW7i8mAOnj9Ilb0tGKbHnZegisiEQ+tra IccJ1Yf5fhg/0/Mu97L/t21hpKZBq1OP1qAyA4aeRgxx+YQcO7ABdqwzFrRWbqz5yElI ulMn7eV0dKmsu7GrPdLKKWGlPYLBU6+3PC2kNNX3dSndM18iI54k7qChJe/5FNgoHu7f 61WQ== X-Gm-Message-State: APjAAAUmzJag1EhkOM8A+9c54y32+IBMxQ2ZZS1FzOfNUs3TMMuZ6JeA 2a8qNpuHvYjsM1uShQd9tx1kIej7gMc= X-Google-Smtp-Source: APXvYqyG/3pTh8y95FDi/XDOxT/OKY5BScVZUixvzySfgzb2m0a+oRq9Sub5fMZ+2iDhVUkkeFBrUQ== X-Received: by 2002:a63:1c13:: with SMTP id c19mr18853910pgc.450.1580120151033; Mon, 27 Jan 2020 02:15:51 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jan 2020 02:15:50 -0800 (PST) From: Pragat Pandya To: valdis.kletnieks@vt.edu, gregkh@linuxfoundation.org Cc: linux-fsdevel@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, skhan@linuxfoundation.org, Pragat Pandya Subject: [PATCH 18/22] staging: exfat: Rename variable "Attr" to "attr" Date: Mon, 27 Jan 2020 15:43:39 +0530 Message-Id: <20200127101343.20415-19-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> Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org Change all the occurrences of "Attr" to "attr" in exfat. Signed-off-by: Pragat Pandya --- drivers/staging/exfat/exfat.h | 2 +- drivers/staging/exfat/exfat_super.c | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/staging/exfat/exfat.h b/drivers/staging/exfat/exfat.h index c334467d6c94..ab48bbd083e5 100644 --- a/drivers/staging/exfat/exfat.h +++ b/drivers/staging/exfat/exfat.h @@ -275,7 +275,7 @@ struct dir_entry_t { /* used only for FAT12/16/32, not used for exFAT */ char short_name[DOS_NAME_LENGTH + 2]; - u32 Attr; + u32 attr; u64 Size; u32 NumSubdirs; struct date_time_t CreateTimestamp; diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c index 73ebe5a5dde9..27d6362f2102 100644 --- a/drivers/staging/exfat/exfat_super.c +++ b/drivers/staging/exfat/exfat_super.c @@ -1457,7 +1457,7 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info) if (is_dir) { if ((fid->dir.dir == p_fs->root_dir) && (fid->entry == -1)) { - info->Attr = ATTR_SUBDIR; + info->attr = ATTR_SUBDIR; memset((char *)&info->CreateTimestamp, 0, sizeof(struct date_time_t)); memset((char *)&info->ModifyTimestamp, 0, @@ -1502,7 +1502,7 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info) ep2 = ep + 1; /* set FILE_INFO structure using the acquired struct dentry_t */ - info->Attr = p_fs->fs_func->get_entry_attr(ep); + info->attr = p_fs->fs_func->get_entry_attr(ep); p_fs->fs_func->get_entry_time(ep, &tm, TM_CREATE); info->CreateTimestamp.year = tm.year; @@ -1602,7 +1602,7 @@ static int ffsWriteStat(struct inode *inode, struct dir_entry_t *info) } ep2 = ep + 1; - p_fs->fs_func->set_entry_attr(ep, info->Attr); + p_fs->fs_func->set_entry_attr(ep, info->attr); /* set FILE_INFO structure using the acquired struct dentry_t */ tm.sec = info->CreateTimestamp.second; @@ -1922,7 +1922,7 @@ static int ffsReadDir(struct inode *inode, struct dir_entry_t *dir_entry) continue; exfat_buf_lock(sb, sector); - dir_entry->Attr = fs_func->get_entry_attr(ep); + dir_entry->attr = fs_func->get_entry_attr(ep); fs_func->get_entry_time(ep, &tm, TM_CREATE); dir_entry->CreateTimestamp.year = tm.year; @@ -2150,7 +2150,7 @@ static int exfat_readdir(struct file *filp, struct dir_context *ctx) } if (!dir_emit(ctx, de.name, strlen(de.name), inum, - (de.Attr & ATTR_SUBDIR) ? DT_DIR : DT_REG)) + (de.attr & ATTR_SUBDIR) ? DT_DIR : DT_REG)) goto out; ctx->pos = cpos; @@ -3159,25 +3159,25 @@ static int exfat_fill_inode(struct inode *inode, struct file_id_t *fid) INC_IVERSION(inode); inode->i_generation = prandom_u32(); - if (info.Attr & ATTR_SUBDIR) { /* directory */ + if (info.attr & ATTR_SUBDIR) { /* directory */ inode->i_generation &= ~1; - inode->i_mode = exfat_make_mode(sbi, info.Attr, 0777); + inode->i_mode = exfat_make_mode(sbi, info.attr, 0777); inode->i_op = &exfat_dir_inode_operations; inode->i_fop = &exfat_dir_operations; i_size_write(inode, info.Size); EXFAT_I(inode)->mmu_private = i_size_read(inode); set_nlink(inode, info.NumSubdirs); - } else if (info.Attr & ATTR_SYMLINK) { /* symbolic link */ + } else if (info.attr & ATTR_SYMLINK) { /* symbolic link */ inode->i_generation |= 1; - inode->i_mode = exfat_make_mode(sbi, info.Attr, 0777); + inode->i_mode = exfat_make_mode(sbi, info.attr, 0777); inode->i_op = &exfat_symlink_inode_operations; i_size_write(inode, info.Size); EXFAT_I(inode)->mmu_private = i_size_read(inode); } else { /* regular file */ inode->i_generation |= 1; - inode->i_mode = exfat_make_mode(sbi, info.Attr, 0777); + inode->i_mode = exfat_make_mode(sbi, info.attr, 0777); inode->i_op = &exfat_file_inode_operations; inode->i_fop = &exfat_file_operations; inode->i_mapping->a_ops = &exfat_aops; @@ -3186,7 +3186,7 @@ static int exfat_fill_inode(struct inode *inode, struct file_id_t *fid) i_size_write(inode, info.Size); EXFAT_I(inode)->mmu_private = i_size_read(inode); } - exfat_save_attr(inode, info.Attr); + exfat_save_attr(inode, info.attr); inode->i_blocks = ((i_size_read(inode) + (p_fs->cluster_size - 1)) & ~((loff_t)p_fs->cluster_size - 1)) >> 9; @@ -3259,7 +3259,7 @@ static int exfat_write_inode(struct inode *inode, struct writeback_control *wbc) if (inode->i_ino == EXFAT_ROOT_INO) return 0; - info.Attr = exfat_make_attr(inode); + info.attr = exfat_make_attr(inode); info.Size = i_size_read(inode); exfat_time_unix2fat(&inode->i_mtime, &info.ModifyTimestamp); -- 2.17.1