Linux Kernel Mentees Archive on lore.kernel.org
 help / color / Atom feed
* [Linux-kernel-mentees] [PATCH 00/18] Rename some identifier and functions.
@ 2020-02-11 12:38 Pragat Pandya
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 01/18] staging: exfat: Rename function "ffsUmountVol" to "ffs_umount_vol" Pragat Pandya
                   ` (17 more replies)
  0 siblings, 18 replies; 20+ messages in thread
From: Pragat Pandya @ 2020-02-11 12:38 UTC (permalink / raw)
  To: gregkh, valdis.kletnieks
  Cc: devel, Pragat Pandya, linux-kernel, linux-fsdevel, linux-kernel-mentees

This patchset renames following variable and fucntions in source
Fix checkpatch warning: Avoid CamelCase
 -ffsUmountVol->ffs_umount_vol
 -ffsGetVolInfo->ffs_get_vol_info
 -ffsSyncVol->ffs_sync_vol
 -ffsLookupFile->ffs_lookup_file
 -ffsCreateFile->ffs_create_file
 -ffsReadFile->ffs_read_file
 -LogSector->log_sector
 -ffsWriteFile->ffs_write_file
 -ffsTruncateFile->ffs_truncate_file
 -ffsMoveFile->ffs_move_file
 -ffsRemoveFile->ffs_remove_file
 -ffsMountVol->ffs_mount_vol
 -ffsReadStat->ffs_read_stat
 -ffsWriteStat->ffs_write_stat
 -ffsMapCluster->ffs_map_cluster
 -ffsCreateDir->ffs_create_dir
 -ffsReadDir->ffs_read_dir
 -ffsRemoveDir->ffs_remove_dir

Pragat Pandya (18):
  staging: exfat: Rename function "ffsUmountVol" to "ffs_umount_vol"
  staging: exfat: Rename function "ffsGetVolInfo" to "ffs_get_vol_info"
  staging: exfat: Rename function "ffsSyncVol" to "ffs_sync_vol"
  staging: exfat: Rename function "ffsLookupFile" to "ffs_lookup_file"
  staging: exfat: Rename function "ffsCreateFile" to "ffs_create_file"
  staging: exfat: Rename function "ffsReadFile" to "ffs_read_file"
  staging: exfat: Rename variable "LogSector" to "log_sector"
  staging: exfat: Rename function "ffsWriteFile" to "ffs_write_file"
  staging: exfat: Rename function "ffsTruncateFile" to
    "ffs_truncate_file"
  staging: exfat: Rename function "ffsMoveFile" to "ffs_move_file"
  staging: exfat: Rename function "ffsRemoveFile" to "ffs_remove_file"
  staging: exfat: Rename function "ffsMountVol" to "ffs_mount_vol"
  staging: exfat: Rename function "ffsReadStat" to "ffs_read_stat"
  staging: exfat: Rename function "ffsWriteStat" to "ffs_write_stat"
  staging: exfat: Rename function "ffsMapCluster" to "ffs_map_cluster"
  staging: exfat: Rename function "ffsCreateDir" to "ffs_create_dir"
  staging: exfat: Rename function "ffsReadDir" to "ffs_read_dir"
  staging: exfat: Rename function "ffsRemoveDir" to "ffs_remove_dir"

 drivers/staging/exfat/exfat_super.c | 114 ++++++++++++++--------------
 1 file changed, 57 insertions(+), 57 deletions(-)

-- 
2.17.1

_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Linux-kernel-mentees] [PATCH 01/18] staging: exfat: Rename function "ffsUmountVol" to "ffs_umount_vol"
  2020-02-11 12:38 [Linux-kernel-mentees] [PATCH 00/18] Rename some identifier and functions Pragat Pandya
@ 2020-02-11 12:38 ` Pragat Pandya
  2020-02-11 19:27   ` Greg KH
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 02/18] staging: exfat: Rename function "ffsGetVolInfo" to "ffs_get_vol_info" Pragat Pandya
                   ` (16 subsequent siblings)
  17 siblings, 1 reply; 20+ messages in thread
From: Pragat Pandya @ 2020-02-11 12:38 UTC (permalink / raw)
  To: gregkh, valdis.kletnieks
  Cc: devel, Pragat Pandya, linux-kernel, linux-fsdevel, linux-kernel-mentees

Fix checkpatch warning: Avoid CamelCase
Change all occurrences of function "ffsUmountVol" to "ffs_umount_vol"
in the source.

Signed-off-by: Pragat Pandya <pragat.pandya@gmail.com>
---
 drivers/staging/exfat/exfat_super.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c
index b81d2a87b82e..1e47bfcebed5 100644
--- a/drivers/staging/exfat/exfat_super.c
+++ b/drivers/staging/exfat/exfat_super.c
@@ -439,7 +439,7 @@ static int ffsMountVol(struct super_block *sb)
 	return ret;
 }
 
-static int ffsUmountVol(struct super_block *sb)
+static int ffs_umount_vol(struct super_block *sb)
 {
 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
 	int err = 0;
@@ -3301,7 +3301,7 @@ static void exfat_put_super(struct super_block *sb)
 	if (__is_sb_dirty(sb))
 		exfat_write_super(sb);
 
-	ffsUmountVol(sb);
+	ffs_umount_vol(sb);
 
 	sb->s_fs_info = NULL;
 	exfat_free_super(sbi);
@@ -3753,7 +3753,7 @@ static int exfat_fill_super(struct super_block *sb, void *data, int silent)
 	return 0;
 
 out_fail2:
-	ffsUmountVol(sb);
+	ffs_umount_vol(sb);
 out_fail:
 	if (root_inode)
 		iput(root_inode);
-- 
2.17.1

_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Linux-kernel-mentees] [PATCH 02/18] staging: exfat: Rename function "ffsGetVolInfo" to "ffs_get_vol_info"
  2020-02-11 12:38 [Linux-kernel-mentees] [PATCH 00/18] Rename some identifier and functions Pragat Pandya
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 01/18] staging: exfat: Rename function "ffsUmountVol" to "ffs_umount_vol" Pragat Pandya
@ 2020-02-11 12:38 ` Pragat Pandya
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 03/18] staging: exfat: Rename function "ffsSyncVol" to "ffs_sync_vol" Pragat Pandya
                   ` (15 subsequent siblings)
  17 siblings, 0 replies; 20+ messages in thread
From: Pragat Pandya @ 2020-02-11 12:38 UTC (permalink / raw)
  To: gregkh, valdis.kletnieks
  Cc: devel, Pragat Pandya, linux-kernel, linux-fsdevel, linux-kernel-mentees

Fix checkpatch warning: Avoid CamelCase
Change all occurrences of function "ffsGetVolInfo" to "ffs_get_vol_info"
in the source.

Signed-off-by: Pragat Pandya <pragat.pandya@gmail.com>
---
 drivers/staging/exfat/exfat_super.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c
index 1e47bfcebed5..06d8e3d60e9e 100644
--- a/drivers/staging/exfat/exfat_super.c
+++ b/drivers/staging/exfat/exfat_super.c
@@ -479,7 +479,7 @@ static int ffs_umount_vol(struct super_block *sb)
 	return err;
 }
 
-static int ffsGetVolInfo(struct super_block *sb, struct vol_info_t *info)
+static int ffs_get_vol_info(struct super_block *sb, struct vol_info_t *info)
 {
 	int err = 0;
 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
@@ -3341,7 +3341,7 @@ static int exfat_statfs(struct dentry *dentry, struct kstatfs *buf)
 	struct vol_info_t info;
 
 	if (p_fs->used_clusters == UINT_MAX) {
-		if (ffsGetVolInfo(sb, &info) == -EIO)
+		if (ffs_get_vol_info(sb, &info) == -EIO)
 			return -EIO;
 
 	} else {
-- 
2.17.1

_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Linux-kernel-mentees] [PATCH 03/18] staging: exfat: Rename function "ffsSyncVol" to "ffs_sync_vol"
  2020-02-11 12:38 [Linux-kernel-mentees] [PATCH 00/18] Rename some identifier and functions Pragat Pandya
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 01/18] staging: exfat: Rename function "ffsUmountVol" to "ffs_umount_vol" Pragat Pandya
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 02/18] staging: exfat: Rename function "ffsGetVolInfo" to "ffs_get_vol_info" Pragat Pandya
@ 2020-02-11 12:38 ` Pragat Pandya
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 04/18] staging: exfat: Rename function "ffsLookupFile" to "ffs_lookup_file" Pragat Pandya
                   ` (14 subsequent siblings)
  17 siblings, 0 replies; 20+ messages in thread
From: Pragat Pandya @ 2020-02-11 12:38 UTC (permalink / raw)
  To: gregkh, valdis.kletnieks
  Cc: devel, Pragat Pandya, linux-kernel, linux-fsdevel, linux-kernel-mentees

Fix checkpatch warning: Avoid CamelCase
Change all occurrences of function "ffsSyncVol" to "ffs_sync_vol" in
source.

Signed-off-by: Pragat Pandya <pragat.pandya@gmail.com>
---
 drivers/staging/exfat/exfat_super.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c
index 06d8e3d60e9e..ba86ca572f32 100644
--- a/drivers/staging/exfat/exfat_super.c
+++ b/drivers/staging/exfat/exfat_super.c
@@ -509,7 +509,7 @@ static int ffs_get_vol_info(struct super_block *sb, struct vol_info_t *info)
 	return err;
 }
 
-static int ffsSyncVol(struct super_block *sb, bool do_sync)
+static int ffs_sync_vol(struct super_block *sb, bool do_sync)
 {
 	int err = 0;
 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
@@ -2899,7 +2899,7 @@ static int exfat_file_release(struct inode *inode, struct file *filp)
 	struct super_block *sb = inode->i_sb;
 
 	EXFAT_I(inode)->fid.size = i_size_read(inode);
-	ffsSyncVol(sb, false);
+	ffs_sync_vol(sb, false);
 	return 0;
 }
 
@@ -3314,7 +3314,7 @@ static void exfat_write_super(struct super_block *sb)
 	__set_sb_clean(sb);
 
 	if (!sb_rdonly(sb))
-		ffsSyncVol(sb, true);
+		ffs_sync_vol(sb, true);
 
 	__unlock_super(sb);
 }
@@ -3326,7 +3326,7 @@ static int exfat_sync_fs(struct super_block *sb, int wait)
 	if (__is_sb_dirty(sb)) {
 		__lock_super(sb);
 		__set_sb_clean(sb);
-		err = ffsSyncVol(sb, true);
+		err = ffs_sync_vol(sb, true);
 		__unlock_super(sb);
 	}
 
-- 
2.17.1

_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Linux-kernel-mentees] [PATCH 04/18] staging: exfat: Rename function "ffsLookupFile" to "ffs_lookup_file"
  2020-02-11 12:38 [Linux-kernel-mentees] [PATCH 00/18] Rename some identifier and functions Pragat Pandya
                   ` (2 preceding siblings ...)
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 03/18] staging: exfat: Rename function "ffsSyncVol" to "ffs_sync_vol" Pragat Pandya
@ 2020-02-11 12:38 ` Pragat Pandya
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 05/18] staging: exfat: Rename function "ffsCreateFile" to "ffs_create_file" Pragat Pandya
                   ` (13 subsequent siblings)
  17 siblings, 0 replies; 20+ messages in thread
From: Pragat Pandya @ 2020-02-11 12:38 UTC (permalink / raw)
  To: gregkh, valdis.kletnieks
  Cc: devel, Pragat Pandya, linux-kernel, linux-fsdevel, linux-kernel-mentees

Fix checkpatch warning: Avoid CamelCase
Change all occurrences of function "ffsLookupFile" to "ffs_lookup_file"
in source.

Signed-off-by: Pragat Pandya <pragat.pandya@gmail.com>
---
 drivers/staging/exfat/exfat_super.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c
index ba86ca572f32..6082c6e75468 100644
--- a/drivers/staging/exfat/exfat_super.c
+++ b/drivers/staging/exfat/exfat_super.c
@@ -534,7 +534,7 @@ static int ffs_sync_vol(struct super_block *sb, bool do_sync)
 /*  File Operation Functions                                            */
 /*----------------------------------------------------------------------*/
 
-static int ffsLookupFile(struct inode *inode, char *path, struct file_id_t *fid)
+static int ffs_lookup_file(struct inode *inode, char *path, struct file_id_t *fid)
 {
 	int ret, dentry, num_entries;
 	struct chain_t dir;
@@ -2279,7 +2279,7 @@ static int exfat_find(struct inode *dir, struct qstr *qname,
 	if (qname->len == 0)
 		return -ENOENT;
 
-	err = ffsLookupFile(dir, (u8 *)qname->name, fid);
+	err = ffs_lookup_file(dir, (u8 *)qname->name, fid);
 	if (err)
 		return -ENOENT;
 
-- 
2.17.1

_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Linux-kernel-mentees] [PATCH 05/18] staging: exfat: Rename function "ffsCreateFile" to "ffs_create_file"
  2020-02-11 12:38 [Linux-kernel-mentees] [PATCH 00/18] Rename some identifier and functions Pragat Pandya
                   ` (3 preceding siblings ...)
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 04/18] staging: exfat: Rename function "ffsLookupFile" to "ffs_lookup_file" Pragat Pandya
@ 2020-02-11 12:38 ` Pragat Pandya
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 06/18] staging: exfat: Rename function "ffsReadFile" to "ffs_read_file" Pragat Pandya
                   ` (12 subsequent siblings)
  17 siblings, 0 replies; 20+ messages in thread
From: Pragat Pandya @ 2020-02-11 12:38 UTC (permalink / raw)
  To: gregkh, valdis.kletnieks
  Cc: devel, Pragat Pandya, linux-kernel, linux-fsdevel, linux-kernel-mentees

Fix checkpatch warning: Avoid CamelCase
Change all occurrences of function "ffsCreateFile" to "ffs_create_file"
in source.

Signed-off-by: Pragat Pandya <pragat.pandya@gmail.com>
---
 drivers/staging/exfat/exfat_super.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c
index 6082c6e75468..5080de9b289a 100644
--- a/drivers/staging/exfat/exfat_super.c
+++ b/drivers/staging/exfat/exfat_super.c
@@ -621,8 +621,8 @@ static int ffs_lookup_file(struct inode *inode, char *path, struct file_id_t *fi
 	return ret;
 }
 
-static int ffsCreateFile(struct inode *inode, char *path, u8 mode,
-			 struct file_id_t *fid)
+static int ffs_create_file(struct inode *inode, char *path, u8 mode,
+			   struct file_id_t *fid)
 {
 	struct chain_t dir;
 	struct uni_name_t uni_name;
@@ -2232,7 +2232,7 @@ static int exfat_create(struct inode *dir, struct dentry *dentry, umode_t mode,
 
 	pr_debug("%s entered\n", __func__);
 
-	err = ffsCreateFile(dir, (u8 *)dentry->d_name.name, FM_REGULAR, &fid);
+	err = ffs_create_file(dir, (u8 *)dentry->d_name.name, FM_REGULAR, &fid);
 	if (err)
 		goto out;
 
@@ -2441,7 +2441,7 @@ static int exfat_symlink(struct inode *dir, struct dentry *dentry,
 
 	pr_debug("%s entered\n", __func__);
 
-	err = ffsCreateFile(dir, (u8 *)dentry->d_name.name, FM_SYMLINK, &fid);
+	err = ffs_create_file(dir, (u8 *)dentry->d_name.name, FM_SYMLINK, &fid);
 	if (err)
 		goto out;
 
-- 
2.17.1

_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Linux-kernel-mentees] [PATCH 06/18] staging: exfat: Rename function "ffsReadFile" to "ffs_read_file"
  2020-02-11 12:38 [Linux-kernel-mentees] [PATCH 00/18] Rename some identifier and functions Pragat Pandya
                   ` (4 preceding siblings ...)
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 05/18] staging: exfat: Rename function "ffsCreateFile" to "ffs_create_file" Pragat Pandya
@ 2020-02-11 12:38 ` Pragat Pandya
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 07/18] staging: exfat: Rename variable "LogSector" to "log_sector" Pragat Pandya
                   ` (11 subsequent siblings)
  17 siblings, 0 replies; 20+ messages in thread
From: Pragat Pandya @ 2020-02-11 12:38 UTC (permalink / raw)
  To: gregkh, valdis.kletnieks
  Cc: devel, Pragat Pandya, linux-kernel, linux-fsdevel, linux-kernel-mentees

Fix checkpatch warning: Avoid CamelCase
Change all occurrences of function "ffsReadFile" to "ffs_read_file" in
source.

Signed-off-by: Pragat Pandya <pragat.pandya@gmail.com>
---
 drivers/staging/exfat/exfat_super.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c
index 5080de9b289a..c7f56f77e4bb 100644
--- a/drivers/staging/exfat/exfat_super.c
+++ b/drivers/staging/exfat/exfat_super.c
@@ -662,8 +662,8 @@ static int ffs_create_file(struct inode *inode, char *path, u8 mode,
 	return ret;
 }
 
-static int ffsReadFile(struct inode *inode, struct file_id_t *fid, void *buffer,
-		       u64 count, u64 *rcount)
+static int ffs_read_file(struct inode *inode, struct file_id_t *fid, void *buffer,
+			 u64 count, u64 *rcount)
 {
 	s32 offset, sec_offset, clu_offset;
 	u32 clu;
@@ -2329,8 +2329,8 @@ static struct dentry *exfat_lookup(struct inode *dir, struct dentry *dentry,
 			err = -ENOMEM;
 			goto error;
 		}
-		ffsReadFile(dir, &fid, EXFAT_I(inode)->target,
-			    i_size_read(inode), &ret);
+		ffs_read_file(dir, &fid, EXFAT_I(inode)->target,
+			      i_size_read(inode), &ret);
 		*(EXFAT_I(inode)->target + i_size_read(inode)) = '\0';
 	}
 
-- 
2.17.1

_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Linux-kernel-mentees] [PATCH 07/18] staging: exfat: Rename variable "LogSector" to "log_sector"
  2020-02-11 12:38 [Linux-kernel-mentees] [PATCH 00/18] Rename some identifier and functions Pragat Pandya
                   ` (5 preceding siblings ...)
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 06/18] staging: exfat: Rename function "ffsReadFile" to "ffs_read_file" Pragat Pandya
@ 2020-02-11 12:38 ` Pragat Pandya
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 08/18] staging: exfat: Rename function "ffsWriteFile" to "ffs_write_file" Pragat Pandya
                   ` (10 subsequent siblings)
  17 siblings, 0 replies; 20+ messages in thread
From: Pragat Pandya @ 2020-02-11 12:38 UTC (permalink / raw)
  To: gregkh, valdis.kletnieks
  Cc: devel, Pragat Pandya, linux-kernel, linux-fsdevel, linux-kernel-mentees

Fix checkpatch warning: Avoid CamelCase
Change all occurrences of identifier "LogSector" to "log_sector" in
source.

Signed-off-by: Pragat Pandya <pragat.pandya@gmail.com>
---
 drivers/staging/exfat/exfat_super.c | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c
index c7f56f77e4bb..3393c97bd9cb 100644
--- a/drivers/staging/exfat/exfat_super.c
+++ b/drivers/staging/exfat/exfat_super.c
@@ -668,7 +668,7 @@ static int ffs_read_file(struct inode *inode, struct file_id_t *fid, void *buffe
 	s32 offset, sec_offset, clu_offset;
 	u32 clu;
 	int ret = 0;
-	sector_t LogSector;
+	sector_t log_sector;
 	u64 oneblkread, read_bytes;
 	struct buffer_head *tmp_bh = NULL;
 	struct super_block *sb = inode->i_sb;
@@ -746,20 +746,20 @@ static int ffs_read_file(struct inode *inode, struct file_id_t *fid, void *buffe
 		/* byte offset in sector */
 		offset &= p_bd->sector_size_mask;
 
-		LogSector = START_SECTOR(clu) + sec_offset;
+		log_sector = START_SECTOR(clu) + sec_offset;
 
 		oneblkread = (u64)(p_bd->sector_size - offset);
 		if (oneblkread > count)
 			oneblkread = count;
 
 		if ((offset == 0) && (oneblkread == p_bd->sector_size)) {
-			if (sector_read(sb, LogSector, &tmp_bh, 1) !=
+			if (sector_read(sb, log_sector, &tmp_bh, 1) !=
 			    0)
 				goto err_out;
 			memcpy((char *)buffer + read_bytes,
 			       (char *)tmp_bh->b_data, (s32)oneblkread);
 		} else {
-			if (sector_read(sb, LogSector, &tmp_bh, 1) !=
+			if (sector_read(sb, log_sector, &tmp_bh, 1) !=
 			    0)
 				goto err_out;
 			memcpy((char *)buffer + read_bytes,
@@ -796,7 +796,7 @@ static int ffsWriteFile(struct inode *inode, struct file_id_t *fid,
 	s32 num_clusters, num_alloc, num_alloced = (s32)~0;
 	int ret = 0;
 	u32 clu, last_clu;
-	sector_t LogSector;
+	sector_t log_sector;
 	u64 oneblkwrite, write_bytes;
 	struct chain_t new_clu;
 	struct timestamp_t tm;
@@ -932,19 +932,19 @@ static int ffsWriteFile(struct inode *inode, struct file_id_t *fid,
 		/* byte offset in sector    */
 		offset &= p_bd->sector_size_mask;
 
-		LogSector = START_SECTOR(clu) + sec_offset;
+		log_sector = START_SECTOR(clu) + sec_offset;
 
 		oneblkwrite = (u64)(p_bd->sector_size - offset);
 		if (oneblkwrite > count)
 			oneblkwrite = count;
 
 		if ((offset == 0) && (oneblkwrite == p_bd->sector_size)) {
-			if (sector_read(sb, LogSector, &tmp_bh, 0) !=
+			if (sector_read(sb, log_sector, &tmp_bh, 0) !=
 			    0)
 				goto err_out;
 			memcpy((char *)tmp_bh->b_data,
 			       (char *)buffer + write_bytes, (s32)oneblkwrite);
-			if (sector_write(sb, LogSector, tmp_bh, 0) !=
+			if (sector_write(sb, log_sector, tmp_bh, 0) !=
 			    0) {
 				brelse(tmp_bh);
 				goto err_out;
@@ -952,18 +952,18 @@ static int ffsWriteFile(struct inode *inode, struct file_id_t *fid,
 		} else {
 			if ((offset > 0) ||
 			    ((fid->rwoffset + oneblkwrite) < fid->size)) {
-				if (sector_read(sb, LogSector, &tmp_bh, 1) !=
+				if (sector_read(sb, log_sector, &tmp_bh, 1) !=
 				    0)
 					goto err_out;
 			} else {
-				if (sector_read(sb, LogSector, &tmp_bh, 0) !=
+				if (sector_read(sb, log_sector, &tmp_bh, 0) !=
 				    0)
 					goto err_out;
 			}
 
 			memcpy((char *)tmp_bh->b_data + offset,
 			       (char *)buffer + write_bytes, (s32)oneblkwrite);
-			if (sector_write(sb, LogSector, tmp_bh, 0) !=
+			if (sector_write(sb, log_sector, tmp_bh, 0) !=
 			    0) {
 				brelse(tmp_bh);
 				goto err_out;
-- 
2.17.1

_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Linux-kernel-mentees] [PATCH 08/18] staging: exfat: Rename function "ffsWriteFile" to "ffs_write_file"
  2020-02-11 12:38 [Linux-kernel-mentees] [PATCH 00/18] Rename some identifier and functions Pragat Pandya
                   ` (6 preceding siblings ...)
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 07/18] staging: exfat: Rename variable "LogSector" to "log_sector" Pragat Pandya
@ 2020-02-11 12:38 ` Pragat Pandya
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 09/18] staging: exfat: Rename function "ffsTruncateFile" to "ffs_truncate_file" Pragat Pandya
                   ` (9 subsequent siblings)
  17 siblings, 0 replies; 20+ messages in thread
From: Pragat Pandya @ 2020-02-11 12:38 UTC (permalink / raw)
  To: gregkh, valdis.kletnieks
  Cc: devel, Pragat Pandya, linux-kernel, linux-fsdevel, linux-kernel-mentees

Fix checkpatch warning: Avoid CamelCase
Change all occurrences of function "ffsWriteFile" to "ffs_write_file" in
source.

Signed-off-by: Pragat Pandya <pragat.pandya@gmail.com>
---
 drivers/staging/exfat/exfat_super.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c
index 3393c97bd9cb..d4e6f6a210e9 100644
--- a/drivers/staging/exfat/exfat_super.c
+++ b/drivers/staging/exfat/exfat_super.c
@@ -788,8 +788,8 @@ static int ffs_read_file(struct inode *inode, struct file_id_t *fid, void *buffe
 	return ret;
 }
 
-static int ffsWriteFile(struct inode *inode, struct file_id_t *fid,
-			void *buffer, u64 count, u64 *wcount)
+static int ffs_write_file(struct inode *inode, struct file_id_t *fid,
+			  void *buffer, u64 count, u64 *wcount)
 {
 	bool modified = false;
 	s32 offset, sec_offset, clu_offset;
@@ -2446,7 +2446,7 @@ static int exfat_symlink(struct inode *dir, struct dentry *dentry,
 		goto out;
 
 
-	err = ffsWriteFile(dir, &fid, (char *)target, len, &ret);
+	err = ffs_write_file(dir, &fid, (char *)target, len, &ret);
 
 	if (err) {
 		ffsRemoveFile(dir, &fid);
-- 
2.17.1

_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Linux-kernel-mentees] [PATCH 09/18] staging: exfat: Rename function "ffsTruncateFile" to "ffs_truncate_file"
  2020-02-11 12:38 [Linux-kernel-mentees] [PATCH 00/18] Rename some identifier and functions Pragat Pandya
                   ` (7 preceding siblings ...)
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 08/18] staging: exfat: Rename function "ffsWriteFile" to "ffs_write_file" Pragat Pandya
@ 2020-02-11 12:38 ` Pragat Pandya
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 10/18] staging: exfat: Rename function "ffsMoveFile" to "ffs_move_file" Pragat Pandya
                   ` (8 subsequent siblings)
  17 siblings, 0 replies; 20+ messages in thread
From: Pragat Pandya @ 2020-02-11 12:38 UTC (permalink / raw)
  To: gregkh, valdis.kletnieks
  Cc: devel, Pragat Pandya, linux-kernel, linux-fsdevel, linux-kernel-mentees

Fix checkpatch warning: Avoid CamelCase
Change all occurrences of function "ffsTruncateFile" to
"ffs_truncate_file" in source.

Signed-off-by: Pragat Pandya <pragat.pandya@gmail.com>
---
 drivers/staging/exfat/exfat_super.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c
index d4e6f6a210e9..5bbd31e6ba3c 100644
--- a/drivers/staging/exfat/exfat_super.c
+++ b/drivers/staging/exfat/exfat_super.c
@@ -1031,7 +1031,7 @@ static int ffs_write_file(struct inode *inode, struct file_id_t *fid,
 	return ret;
 }
 
-static int ffsTruncateFile(struct inode *inode, u64 old_size, u64 new_size)
+static int ffs_truncate_file(struct inode *inode, u64 old_size, u64 new_size)
 {
 	s32 num_clusters;
 	u32 last_clu = CLUSTER_32(0);
@@ -2763,7 +2763,7 @@ static void exfat_truncate(struct inode *inode, loff_t old_size)
 	if (EXFAT_I(inode)->fid.start_clu == 0)
 		goto out;
 
-	err = ffsTruncateFile(inode, old_size, i_size_read(inode));
+	err = ffs_truncate_file(inode, old_size, i_size_read(inode));
 	if (err)
 		goto out;
 
-- 
2.17.1

_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Linux-kernel-mentees] [PATCH 10/18] staging: exfat: Rename function "ffsMoveFile" to "ffs_move_file"
  2020-02-11 12:38 [Linux-kernel-mentees] [PATCH 00/18] Rename some identifier and functions Pragat Pandya
                   ` (8 preceding siblings ...)
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 09/18] staging: exfat: Rename function "ffsTruncateFile" to "ffs_truncate_file" Pragat Pandya
@ 2020-02-11 12:38 ` Pragat Pandya
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 11/18] staging: exfat: Rename function "ffsRemoveFile" to "ffs_remove_file" Pragat Pandya
                   ` (7 subsequent siblings)
  17 siblings, 0 replies; 20+ messages in thread
From: Pragat Pandya @ 2020-02-11 12:38 UTC (permalink / raw)
  To: gregkh, valdis.kletnieks
  Cc: devel, Pragat Pandya, linux-kernel, linux-fsdevel, linux-kernel-mentees

Fix checkpatch warning: Avoid CamelCase
Change all occurrences of function "ffsMoveFile" to "ffs_move_file" in
source.

Signed-off-by: Pragat Pandya <pragat.pandya@gmail.com>
---
 drivers/staging/exfat/exfat_super.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c
index 5bbd31e6ba3c..51893f8c3e92 100644
--- a/drivers/staging/exfat/exfat_super.c
+++ b/drivers/staging/exfat/exfat_super.c
@@ -1167,8 +1167,8 @@ static void update_parent_info(struct file_id_t *fid,
 	}
 }
 
-static int ffsMoveFile(struct inode *old_parent_inode, struct file_id_t *fid,
-		       struct inode *new_parent_inode, struct dentry *new_dentry)
+static int ffs_move_file(struct inode *old_parent_inode, struct file_id_t *fid,
+			 struct inode *new_parent_inode, struct dentry *new_dentry)
 {
 	s32 ret;
 	s32 dentry;
@@ -2605,8 +2605,8 @@ static int exfat_rename(struct inode *old_dir, struct dentry *old_dentry,
 
 	EXFAT_I(old_inode)->fid.size = i_size_read(old_inode);
 
-	err = ffsMoveFile(old_dir, &(EXFAT_I(old_inode)->fid), new_dir,
-			  new_dentry);
+	err = ffs_move_file(old_dir, &(EXFAT_I(old_inode)->fid), new_dir,
+			    new_dentry);
 	if (err)
 		goto out;
 
-- 
2.17.1

_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Linux-kernel-mentees] [PATCH 11/18] staging: exfat: Rename function "ffsRemoveFile" to "ffs_remove_file"
  2020-02-11 12:38 [Linux-kernel-mentees] [PATCH 00/18] Rename some identifier and functions Pragat Pandya
                   ` (9 preceding siblings ...)
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 10/18] staging: exfat: Rename function "ffsMoveFile" to "ffs_move_file" Pragat Pandya
@ 2020-02-11 12:38 ` Pragat Pandya
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 12/18] staging: exfat: Rename function "ffsMountVol" to "ffs_mount_vol" Pragat Pandya
                   ` (6 subsequent siblings)
  17 siblings, 0 replies; 20+ messages in thread
From: Pragat Pandya @ 2020-02-11 12:38 UTC (permalink / raw)
  To: gregkh, valdis.kletnieks
  Cc: devel, Pragat Pandya, linux-kernel, linux-fsdevel, linux-kernel-mentees

Fix checkpatch warning: Avoid CamelCase
Change all occurrences of function "ffsRemoveFile" to "ffs_remove_file"
in source.

Signed-off-by: Pragat Pandya <pragat.pandya@gmail.com>
---
 drivers/staging/exfat/exfat_super.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c
index 51893f8c3e92..05a4012c5c62 100644
--- a/drivers/staging/exfat/exfat_super.c
+++ b/drivers/staging/exfat/exfat_super.c
@@ -1296,7 +1296,7 @@ static int ffs_move_file(struct inode *old_parent_inode, struct file_id_t *fid,
 	return ret;
 }
 
-static int ffsRemoveFile(struct inode *inode, struct file_id_t *fid)
+static int ffs_remove_file(struct inode *inode, struct file_id_t *fid)
 {
 	s32 dentry;
 	int ret = 0;
@@ -2399,7 +2399,7 @@ static int exfat_unlink(struct inode *dir, struct dentry *dentry)
 
 	EXFAT_I(inode)->fid.size = i_size_read(inode);
 
-	err = ffsRemoveFile(dir, &(EXFAT_I(inode)->fid));
+	err = ffs_remove_file(dir, &(EXFAT_I(inode)->fid));
 	if (err)
 		goto out;
 
@@ -2449,7 +2449,7 @@ static int exfat_symlink(struct inode *dir, struct dentry *dentry,
 	err = ffs_write_file(dir, &fid, (char *)target, len, &ret);
 
 	if (err) {
-		ffsRemoveFile(dir, &fid);
+		ffs_remove_file(dir, &fid);
 		goto out;
 	}
 
-- 
2.17.1

_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Linux-kernel-mentees] [PATCH 12/18] staging: exfat: Rename function "ffsMountVol" to "ffs_mount_vol"
  2020-02-11 12:38 [Linux-kernel-mentees] [PATCH 00/18] Rename some identifier and functions Pragat Pandya
                   ` (10 preceding siblings ...)
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 11/18] staging: exfat: Rename function "ffsRemoveFile" to "ffs_remove_file" Pragat Pandya
@ 2020-02-11 12:38 ` Pragat Pandya
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 13/18] staging: exfat: Rename function "ffsReadStat" to "ffs_read_stat" Pragat Pandya
                   ` (5 subsequent siblings)
  17 siblings, 0 replies; 20+ messages in thread
From: Pragat Pandya @ 2020-02-11 12:38 UTC (permalink / raw)
  To: gregkh, valdis.kletnieks
  Cc: devel, Pragat Pandya, linux-kernel, linux-fsdevel, linux-kernel-mentees

Fix checkpatch warning: Avoid CamelCase
Change all occurrences of function "ffsMountVol" to "ffs_mount_vol" in
source.

Signed-off-by: Pragat Pandya <pragat.pandya@gmail.com>
---
 drivers/staging/exfat/exfat_super.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c
index 05a4012c5c62..6fa005097a21 100644
--- a/drivers/staging/exfat/exfat_super.c
+++ b/drivers/staging/exfat/exfat_super.c
@@ -343,7 +343,7 @@ static inline void exfat_save_attr(struct inode *inode, u32 attr)
 		EXFAT_I(inode)->fid.attr = attr & (ATTR_RWMASK | ATTR_READONLY);
 }
 
-static int ffsMountVol(struct super_block *sb)
+static int ffs_mount_vol(struct super_block *sb)
 {
 	int i, ret;
 	struct pbr_sector_t *p_pbr;
@@ -3710,7 +3710,7 @@ static int exfat_fill_super(struct super_block *sb, void *data, int silent)
 	sb_min_blocksize(sb, 512);
 	sb->s_maxbytes = 0x7fffffffffffffffLL;    /* maximum file size */
 
-	ret = ffsMountVol(sb);
+	ret = ffs_mount_vol(sb);
 	if (ret) {
 		if (!silent)
 			pr_err("[EXFAT] ffsMountVol failed\n");
-- 
2.17.1

_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Linux-kernel-mentees] [PATCH 13/18] staging: exfat: Rename function "ffsReadStat" to "ffs_read_stat"
  2020-02-11 12:38 [Linux-kernel-mentees] [PATCH 00/18] Rename some identifier and functions Pragat Pandya
                   ` (11 preceding siblings ...)
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 12/18] staging: exfat: Rename function "ffsMountVol" to "ffs_mount_vol" Pragat Pandya
@ 2020-02-11 12:38 ` Pragat Pandya
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 14/18] staging: exfat: Rename function "ffsWriteStat" to "ffs_write_stat" Pragat Pandya
                   ` (4 subsequent siblings)
  17 siblings, 0 replies; 20+ messages in thread
From: Pragat Pandya @ 2020-02-11 12:38 UTC (permalink / raw)
  To: gregkh, valdis.kletnieks
  Cc: devel, Pragat Pandya, linux-kernel, linux-fsdevel, linux-kernel-mentees

Fix checkpatch warning: Avoid CamelCase
Change all occurrences of function "ffsReadStat" to "ffs_read_stat" in
source.

Signed-off-by: Pragat Pandya <pragat.pandya@gmail.com>
---
 drivers/staging/exfat/exfat_super.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c
index 6fa005097a21..6d21c0161419 100644
--- a/drivers/staging/exfat/exfat_super.c
+++ b/drivers/staging/exfat/exfat_super.c
@@ -1435,7 +1435,7 @@ static int ffsSetAttr(struct inode *inode, u32 attr)
 }
 #endif
 
-static int ffsReadStat(struct inode *inode, struct dir_entry_t *info)
+static int ffs_read_stat(struct inode *inode, struct dir_entry_t *info)
 {
 	s32 count;
 	int ret = 0;
@@ -3147,7 +3147,7 @@ static int exfat_fill_inode(struct inode *inode, struct file_id_t *fid)
 
 	memcpy(&(EXFAT_I(inode)->fid), fid, sizeof(struct file_id_t));
 
-	ffsReadStat(inode, &info);
+	ffs_read_stat(inode, &info);
 
 	EXFAT_I(inode)->i_pos = 0;
 	EXFAT_I(inode)->target = NULL;
@@ -3643,7 +3643,7 @@ static int exfat_read_root(struct inode *inode)
 
 	EXFAT_I(inode)->target = NULL;
 
-	ffsReadStat(inode, &info);
+	ffs_read_stat(inode, &info);
 
 	inode->i_uid = sbi->options.fs_uid;
 	inode->i_gid = sbi->options.fs_gid;
-- 
2.17.1

_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Linux-kernel-mentees] [PATCH 14/18] staging: exfat: Rename function "ffsWriteStat" to "ffs_write_stat"
  2020-02-11 12:38 [Linux-kernel-mentees] [PATCH 00/18] Rename some identifier and functions Pragat Pandya
                   ` (12 preceding siblings ...)
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 13/18] staging: exfat: Rename function "ffsReadStat" to "ffs_read_stat" Pragat Pandya
@ 2020-02-11 12:38 ` Pragat Pandya
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 15/18] staging: exfat: Rename function "ffsMapCluster" to "ffs_map_cluster" Pragat Pandya
                   ` (3 subsequent siblings)
  17 siblings, 0 replies; 20+ messages in thread
From: Pragat Pandya @ 2020-02-11 12:38 UTC (permalink / raw)
  To: gregkh, valdis.kletnieks
  Cc: devel, Pragat Pandya, linux-kernel, linux-fsdevel, linux-kernel-mentees

Fix checkpatch warning: Avoid CamelCase
Change all occurrences of function "ffsWriteStat" to "ffs_write_stat" in
source.

Signed-off-by: Pragat Pandya <pragat.pandya@gmail.com>
---
 drivers/staging/exfat/exfat_super.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c
index 6d21c0161419..5fb084941c3b 100644
--- a/drivers/staging/exfat/exfat_super.c
+++ b/drivers/staging/exfat/exfat_super.c
@@ -1565,7 +1565,7 @@ static int ffs_read_stat(struct inode *inode, struct dir_entry_t *info)
 	return ret;
 }
 
-static int ffsWriteStat(struct inode *inode, struct dir_entry_t *info)
+static int ffs_write_stat(struct inode *inode, struct dir_entry_t *info)
 {
 	int ret = 0;
 	struct timestamp_t tm;
@@ -3263,7 +3263,7 @@ static int exfat_write_inode(struct inode *inode, struct writeback_control *wbc)
 	exfat_time_unix2fat(&inode->i_ctime, &info.CreateTimestamp);
 	exfat_time_unix2fat(&inode->i_atime, &info.AccessTimestamp);
 
-	ffsWriteStat(inode, &info);
+	ffs_write_stat(inode, &info);
 
 	return 0;
 }
-- 
2.17.1

_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Linux-kernel-mentees] [PATCH 15/18] staging: exfat: Rename function "ffsMapCluster" to "ffs_map_cluster"
  2020-02-11 12:38 [Linux-kernel-mentees] [PATCH 00/18] Rename some identifier and functions Pragat Pandya
                   ` (13 preceding siblings ...)
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 14/18] staging: exfat: Rename function "ffsWriteStat" to "ffs_write_stat" Pragat Pandya
@ 2020-02-11 12:38 ` Pragat Pandya
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 16/18] staging: exfat: Rename function "ffsCreateDir" to "ffs_create_dir" Pragat Pandya
                   ` (2 subsequent siblings)
  17 siblings, 0 replies; 20+ messages in thread
From: Pragat Pandya @ 2020-02-11 12:38 UTC (permalink / raw)
  To: gregkh, valdis.kletnieks
  Cc: devel, Pragat Pandya, linux-kernel, linux-fsdevel, linux-kernel-mentees

Fix checkpatch warning: Avoid CamelCase
Change all occurrences of function "ffsMapCluster" to "ffs_map_cluster"
in source.

Signed-off-by: Pragat Pandya <pragat.pandya@gmail.com>
---
 drivers/staging/exfat/exfat_super.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c
index 5fb084941c3b..87a7bcba4921 100644
--- a/drivers/staging/exfat/exfat_super.c
+++ b/drivers/staging/exfat/exfat_super.c
@@ -1638,7 +1638,7 @@ static int ffs_write_stat(struct inode *inode, struct dir_entry_t *info)
 	return ret;
 }
 
-static int ffsMapCluster(struct inode *inode, s32 clu_offset, u32 *clu)
+static int ffs_map_cluster(struct inode *inode, s32 clu_offset, u32 *clu)
 {
 	s32 num_clusters, num_alloced;
 	bool modified = false;
@@ -2954,7 +2954,7 @@ static int exfat_bmap(struct inode *inode, sector_t sector, sector_t *phys,
 
 	EXFAT_I(inode)->fid.size = i_size_read(inode);
 
-	err = ffsMapCluster(inode, clu_offset, &cluster);
+	err = ffs_map_cluster(inode, clu_offset, &cluster);
 
 	if (!err && (cluster != CLUSTER_32(~0))) {
 		*phys = START_SECTOR(cluster) + sec_offset;
-- 
2.17.1

_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Linux-kernel-mentees] [PATCH 16/18] staging: exfat: Rename function "ffsCreateDir" to "ffs_create_dir"
  2020-02-11 12:38 [Linux-kernel-mentees] [PATCH 00/18] Rename some identifier and functions Pragat Pandya
                   ` (14 preceding siblings ...)
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 15/18] staging: exfat: Rename function "ffsMapCluster" to "ffs_map_cluster" Pragat Pandya
@ 2020-02-11 12:38 ` Pragat Pandya
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 17/18] staging: exfat: Rename function "ffsReadDir" to "ffs_read_dir" Pragat Pandya
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 18/18] staging: exfat: Rename function "ffsRemoveDir" to "ffs_remove_dir" Pragat Pandya
  17 siblings, 0 replies; 20+ messages in thread
From: Pragat Pandya @ 2020-02-11 12:38 UTC (permalink / raw)
  To: gregkh, valdis.kletnieks
  Cc: devel, Pragat Pandya, linux-kernel, linux-fsdevel, linux-kernel-mentees

Fix checkpatch warning: Avoid CamelCase
Change all occurrences of function "ffsCreateDir" to "ffs_create_dir" in
source.

Signed-off-by: Pragat Pandya <pragat.pandya@gmail.com>
---
 drivers/staging/exfat/exfat_super.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c
index 87a7bcba4921..d8265dabe37d 100644
--- a/drivers/staging/exfat/exfat_super.c
+++ b/drivers/staging/exfat/exfat_super.c
@@ -1776,7 +1776,7 @@ static int ffs_map_cluster(struct inode *inode, s32 clu_offset, u32 *clu)
 /*  Directory Operation Functions                                       */
 /*----------------------------------------------------------------------*/
 
-static int ffsCreateDir(struct inode *inode, char *path, struct file_id_t *fid)
+static int ffs_create_dir(struct inode *inode, char *path, struct file_id_t *fid)
 {
 	int ret = 0;
 	struct chain_t dir;
@@ -2505,7 +2505,7 @@ static int exfat_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)
 
 	pr_debug("%s entered\n", __func__);
 
-	err = ffsCreateDir(dir, (u8 *)dentry->d_name.name, &fid);
+	err = ffs_create_dir(dir, (u8 *)dentry->d_name.name, &fid);
 	if (err)
 		goto out;
 
-- 
2.17.1

_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Linux-kernel-mentees] [PATCH 17/18] staging: exfat: Rename function "ffsReadDir" to "ffs_read_dir"
  2020-02-11 12:38 [Linux-kernel-mentees] [PATCH 00/18] Rename some identifier and functions Pragat Pandya
                   ` (15 preceding siblings ...)
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 16/18] staging: exfat: Rename function "ffsCreateDir" to "ffs_create_dir" Pragat Pandya
@ 2020-02-11 12:38 ` Pragat Pandya
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 18/18] staging: exfat: Rename function "ffsRemoveDir" to "ffs_remove_dir" Pragat Pandya
  17 siblings, 0 replies; 20+ messages in thread
From: Pragat Pandya @ 2020-02-11 12:38 UTC (permalink / raw)
  To: gregkh, valdis.kletnieks
  Cc: devel, Pragat Pandya, linux-kernel, linux-fsdevel, linux-kernel-mentees

Fix checkpatch warning: Avoid CamelCase
Change all occurrences of function "ffsReadDir" to "ffs_read_dir" in
source.

Signed-off-by: Pragat Pandya <pragat.pandya@gmail.com>
---
 drivers/staging/exfat/exfat_super.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c
index d8265dabe37d..46aeff4fb3d3 100644
--- a/drivers/staging/exfat/exfat_super.c
+++ b/drivers/staging/exfat/exfat_super.c
@@ -1816,7 +1816,7 @@ static int ffs_create_dir(struct inode *inode, char *path, struct file_id_t *fid
 	return ret;
 }
 
-static int ffsReadDir(struct inode *inode, struct dir_entry_t *dir_entry)
+static int ffs_read_dir(struct inode *inode, struct dir_entry_t *dir_entry)
 {
 	int i, dentry, clu_offset;
 	int ret = 0;
@@ -2111,7 +2111,7 @@ static int exfat_readdir(struct file *filp, struct dir_context *ctx)
 	EXFAT_I(inode)->fid.size = i_size_read(inode);
 	EXFAT_I(inode)->fid.rwoffset = cpos >> DENTRY_SIZE_BITS;
 
-	err = ffsReadDir(inode, &de);
+	err = ffs_read_dir(inode, &de);
 	if (err) {
 		/* at least we tried to read a sector
 		 * move cpos to next sector position (should be aligned)
-- 
2.17.1

_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Linux-kernel-mentees] [PATCH 18/18] staging: exfat: Rename function "ffsRemoveDir" to "ffs_remove_dir"
  2020-02-11 12:38 [Linux-kernel-mentees] [PATCH 00/18] Rename some identifier and functions Pragat Pandya
                   ` (16 preceding siblings ...)
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 17/18] staging: exfat: Rename function "ffsReadDir" to "ffs_read_dir" Pragat Pandya
@ 2020-02-11 12:38 ` Pragat Pandya
  17 siblings, 0 replies; 20+ messages in thread
From: Pragat Pandya @ 2020-02-11 12:38 UTC (permalink / raw)
  To: gregkh, valdis.kletnieks
  Cc: devel, Pragat Pandya, linux-kernel, linux-fsdevel, linux-kernel-mentees

Fix checkpatch warning: Avoid CamelCase
Change all occurrences of function "ffsRemoveDir" to "ffs_remove_dir" in
source.

Signed-off-by: Pragat Pandya <pragat.pandya@gmail.com>
---
 drivers/staging/exfat/exfat_super.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c
index 46aeff4fb3d3..3e022eb3ada3 100644
--- a/drivers/staging/exfat/exfat_super.c
+++ b/drivers/staging/exfat/exfat_super.c
@@ -2002,7 +2002,7 @@ static int ffs_read_dir(struct inode *inode, struct dir_entry_t *dir_entry)
 	return ret;
 }
 
-static int ffsRemoveDir(struct inode *inode, struct file_id_t *fid)
+static int ffs_remove_dir(struct inode *inode, struct file_id_t *fid)
 {
 	s32 dentry;
 	int ret = 0;
@@ -2556,7 +2556,7 @@ static int exfat_rmdir(struct inode *dir, struct dentry *dentry)
 
 	EXFAT_I(inode)->fid.size = i_size_read(inode);
 
-	err = ffsRemoveDir(dir, &(EXFAT_I(inode)->fid));
+	err = ffs_remove_dir(dir, &(EXFAT_I(inode)->fid));
 	if (err)
 		goto out;
 
-- 
2.17.1

_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [Linux-kernel-mentees] [PATCH 01/18] staging: exfat: Rename function "ffsUmountVol" to "ffs_umount_vol"
  2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 01/18] staging: exfat: Rename function "ffsUmountVol" to "ffs_umount_vol" Pragat Pandya
@ 2020-02-11 19:27   ` Greg KH
  0 siblings, 0 replies; 20+ messages in thread
From: Greg KH @ 2020-02-11 19:27 UTC (permalink / raw)
  To: Pragat Pandya
  Cc: valdis.kletnieks, devel, linux-kernel, linux-fsdevel,
	linux-kernel-mentees

On Tue, Feb 11, 2020 at 06:08:42PM +0530, Pragat Pandya wrote:
> Fix checkpatch warning: Avoid CamelCase
> Change all occurrences of function "ffsUmountVol" to "ffs_umount_vol"
> in the source.

I've said this before about this type of change, but there's no need for
the "ffs" prefix at all for almost all of these functions.  Can you just
name them sanely instead?

thanks,

greg k-h
_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, back to index

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-11 12:38 [Linux-kernel-mentees] [PATCH 00/18] Rename some identifier and functions Pragat Pandya
2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 01/18] staging: exfat: Rename function "ffsUmountVol" to "ffs_umount_vol" Pragat Pandya
2020-02-11 19:27   ` Greg KH
2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 02/18] staging: exfat: Rename function "ffsGetVolInfo" to "ffs_get_vol_info" Pragat Pandya
2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 03/18] staging: exfat: Rename function "ffsSyncVol" to "ffs_sync_vol" Pragat Pandya
2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 04/18] staging: exfat: Rename function "ffsLookupFile" to "ffs_lookup_file" Pragat Pandya
2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 05/18] staging: exfat: Rename function "ffsCreateFile" to "ffs_create_file" Pragat Pandya
2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 06/18] staging: exfat: Rename function "ffsReadFile" to "ffs_read_file" Pragat Pandya
2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 07/18] staging: exfat: Rename variable "LogSector" to "log_sector" Pragat Pandya
2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 08/18] staging: exfat: Rename function "ffsWriteFile" to "ffs_write_file" Pragat Pandya
2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 09/18] staging: exfat: Rename function "ffsTruncateFile" to "ffs_truncate_file" Pragat Pandya
2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 10/18] staging: exfat: Rename function "ffsMoveFile" to "ffs_move_file" Pragat Pandya
2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 11/18] staging: exfat: Rename function "ffsRemoveFile" to "ffs_remove_file" Pragat Pandya
2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 12/18] staging: exfat: Rename function "ffsMountVol" to "ffs_mount_vol" Pragat Pandya
2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 13/18] staging: exfat: Rename function "ffsReadStat" to "ffs_read_stat" Pragat Pandya
2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 14/18] staging: exfat: Rename function "ffsWriteStat" to "ffs_write_stat" Pragat Pandya
2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 15/18] staging: exfat: Rename function "ffsMapCluster" to "ffs_map_cluster" Pragat Pandya
2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 16/18] staging: exfat: Rename function "ffsCreateDir" to "ffs_create_dir" Pragat Pandya
2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 17/18] staging: exfat: Rename function "ffsReadDir" to "ffs_read_dir" Pragat Pandya
2020-02-11 12:38 ` [Linux-kernel-mentees] [PATCH 18/18] staging: exfat: Rename function "ffsRemoveDir" to "ffs_remove_dir" Pragat Pandya

Linux Kernel Mentees Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-kernel-mentees/0 linux-kernel-mentees/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-kernel-mentees linux-kernel-mentees/ https://lore.kernel.org/linux-kernel-mentees \
		linux-kernel-mentees@lists.linuxfoundation.org
	public-inbox-index linux-kernel-mentees

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.linuxfoundation.lists.linux-kernel-mentees


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git