lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAE1WUT7agR9YvnK8+11yFU1sGwOxXchpP0PQeuPziKvw6GFrMQ@mail.gmail.com>
Date:   Tue, 26 Jan 2021 12:58:06 -0800
From:   Amy Parker <enbyamy@...il.com>
To:     linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 2/2] fs/efs: fix style guide for namei.c and super.c

This patch updates various styling in namei.c and super.c to follow
the kernel style guide.

Signed-off-by: Amy Parker <enbyamy@...il.com>
---
fs/efs/namei.c |  2 +-
fs/efs/super.c | 13 +++++++------
2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/fs/efs/namei.c b/fs/efs/namei.c
index 38961ee1d1af..65d9c7f4d0c0 100644
--- a/fs/efs/namei.c
+++ b/fs/efs/namei.c
@@ -28,7 +28,7 @@ static efs_ino_t efs_find_entry(struct inode *inode,
const char *name, int le
n)
               pr_warn("%s(): directory size not a multiple of EFS_DIRBSIZE\n",
                       __func__);

-       for(block = 0; block < inode->i_blocks; block++) {
+       for (block = 0; block < inode->i_blocks; block++) {

               bh = sb_bread(inode->i_sb, efs_bmap(inode, block));
               if (!bh) {
diff --git a/fs/efs/super.c b/fs/efs/super.c
index 62b155b9366b..d55c481796f1 100644
--- a/fs/efs/super.c
+++ b/fs/efs/super.c
@@ -170,7 +170,7 @@ static efs_block_t efs_validate_vh(struct
volume_header *vh) {
       }

       ui = ((__be32 *) (vh + 1)) - 1;
-       for(csum = 0; ui >= ((__be32 *) vh);) {
+       for (csum = 0; ui >= ((__be32 *) vh);) {
               cs = *ui--;
               csum += be32_to_cpu(cs);
       }
@@ -182,11 +182,11 @@ static efs_block_t efs_validate_vh(struct
volume_header *vh) {
#ifdef DEBUG
       pr_debug("bf: \"%16s\"\n", vh->vh_bootfile);

-       for(i = 0; i < NVDIR; i++) {
+       for (i = 0; i < NVDIR; i++) {
               int     j;
               char    name[VDNAMESIZE+1];

-               for(j = 0; j < VDNAMESIZE; j++) {
+               for (j = 0; j < VDNAMESIZE; j++) {
                       name[j] = vh->vh_vd[i].vd_name[j];
               }
               name[j] = (char) 0;
@@ -199,9 +199,9 @@ static efs_block_t efs_validate_vh(struct
volume_header *vh) {
       }
#endif

-       for(i = 0; i < NPARTAB; i++) {
+       for (i = 0; i < NPARTAB; i++) {
               pt_type = (int) be32_to_cpu(vh->vh_pt[i].pt_type);
-               for(pt_entry = sgi_pt_types; pt_entry->pt_name; pt_entry++) {
+               for (pt_entry = sgi_pt_types; pt_entry->pt_name; pt_entry++) {
                       if (pt_type == pt_entry->pt_type) break;
               }
#ifdef DEBUG
@@ -222,7 +222,8 @@ static efs_block_t efs_validate_vh(struct
volume_header *vh) {
       if (slice == -1) {
               pr_notice("partition table contained no EFS partitions\n");
#ifdef DEBUG
-       } else {
+       }
+       else {
               pr_info("using slice %d (type %s, offset 0x%x)\n", slice,
                       (pt_entry->pt_name) ? pt_entry->pt_name : "unknown",
                       sblock);
--
2.29.2

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ