f2fs: space related cleanup
authorJack Qiu <jack.qiu@huawei.com>
Fri, 24 Jul 2020 08:55:28 +0000 (16:55 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sun, 26 Jul 2020 15:15:40 +0000 (08:15 -0700)
Just for code style, no logic change
1. delete useless space
2. change spaces into tab

Signed-off-by: Jack Qiu <jack.qiu@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/namei.c
fs/f2fs/node.c
fs/f2fs/sysfs.c
fs/f2fs/xattr.c

index 8f5753cc303764966752192ea99ac26cad4e5ca7..f86c6ba7cb8268335516e0c362144aeb5a7c1d7a 100644 (file)
@@ -1415,7 +1415,7 @@ static int do_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc)
                                curseg_alloc_type(sbi, i + CURSEG_HOT_DATA);
        }
 
-       /* 2 cp  + n data seg summary + orphan inode blocks */
+       /* 2 cp + n data seg summary + orphan inode blocks */
        data_sum_blocks = f2fs_npages_for_summary_flush(sbi, false);
        spin_lock_irqsave(&sbi->cp_lock, flags);
        if (data_sum_blocks < NR_CURSEG_DATA_TYPE)
index 44645f4f914b62c566c077b59dc8a790ef75ef6b..3b8409ce24f25452ed978b5b4019d5388d428dc1 100644 (file)
@@ -86,7 +86,7 @@ static bool __is_cp_guaranteed(struct page *page)
        sbi = F2FS_I_SB(inode);
 
        if (inode->i_ino == F2FS_META_INO(sbi) ||
-                       inode->i_ino ==  F2FS_NODE_INO(sbi) ||
+                       inode->i_ino == F2FS_NODE_INO(sbi) ||
                        S_ISDIR(inode->i_mode) ||
                        (S_ISREG(inode->i_mode) &&
                        (f2fs_is_atomic_file(inode) || IS_NOQUOTA(inode))) ||
@@ -1146,7 +1146,7 @@ int f2fs_reserve_block(struct dnode_of_data *dn, pgoff_t index)
 
 int f2fs_get_block(struct dnode_of_data *dn, pgoff_t index)
 {
-       struct extent_info ei  = {0,0,0};
+       struct extent_info ei = {0, 0, 0};
        struct inode *inode = dn->inode;
 
        if (f2fs_lookup_extent_cache(inode, index, &ei)) {
index 927006d00a63d78a5cc85c0995b1a3d67e651239..3a14056c9cd8c580e885ba3d360c4366109d2e30 100644 (file)
@@ -1440,7 +1440,7 @@ struct f2fs_sb_info {
        unsigned long last_time[MAX_TIME];      /* to store time in jiffies */
        long interval_time[MAX_TIME];           /* to store thresholds */
 
-       struct inode_management im[MAX_INO_ENTRY];      /* manage inode cache */
+       struct inode_management im[MAX_INO_ENTRY];      /* manage inode cache */
 
        spinlock_t fsync_node_lock;             /* for node entry lock */
        struct list_head fsync_node_list;       /* node list head */
@@ -1520,7 +1520,7 @@ struct f2fs_sb_info {
        unsigned int next_victim_seg[2];        /* next segment in victim section */
 
        /* for skip statistic */
-       unsigned int atomic_files;              /* # of opened atomic file */
+       unsigned int atomic_files;              /* # of opened atomic file */
        unsigned long long skipped_atomic_files[2];     /* FG_GC and BG_GC */
        unsigned long long skipped_gc_rwsem;            /* FG_GC only */
 
index a15a2831d43b247cdcfbaf9a9561032c73ee4ab2..84e4bbc1a64de0bf4f84c12c65b9467d7b42d378 100644 (file)
@@ -602,7 +602,7 @@ static int f2fs_unlink(struct inode *dir, struct dentry *dentry)
        /* VFS negative dentries are incompatible with Encoding and
         * Case-insensitiveness. Eventually we'll want avoid
         * invalidating the dentries here, alongside with returning the
-        * negative dentries at f2fs_lookup(), when it is  better
+        * negative dentries at f2fs_lookup(), when it is better
         * supported by the VFS for the CI case.
         */
        if (IS_CASEFOLDED(dir))
@@ -1287,7 +1287,7 @@ static const char *f2fs_encrypted_get_link(struct dentry *dentry,
 }
 
 const struct inode_operations f2fs_encrypted_symlink_inode_operations = {
-       .get_link       = f2fs_encrypted_get_link,
+       .get_link       = f2fs_encrypted_get_link,
        .getattr        = f2fs_getattr,
        .setattr        = f2fs_setattr,
        .listxattr      = f2fs_listxattr,
@@ -1313,7 +1313,7 @@ const struct inode_operations f2fs_dir_inode_operations = {
 };
 
 const struct inode_operations f2fs_symlink_inode_operations = {
-       .get_link       = f2fs_get_link,
+       .get_link       = f2fs_get_link,
        .getattr        = f2fs_getattr,
        .setattr        = f2fs_setattr,
        .listxattr      = f2fs_listxattr,
@@ -1321,7 +1321,7 @@ const struct inode_operations f2fs_symlink_inode_operations = {
 
 const struct inode_operations f2fs_special_inode_operations = {
        .getattr        = f2fs_getattr,
-       .setattr        = f2fs_setattr,
+       .setattr        = f2fs_setattr,
        .get_acl        = f2fs_get_acl,
        .set_acl        = f2fs_set_acl,
        .listxattr      = f2fs_listxattr,
index 07a4dc743416a82f950d50c319edc7a65b8e13d6..9bbaa2614679f84d41062601bdbf0428b8fca21a 100644 (file)
@@ -1728,7 +1728,7 @@ continue_unlock:
                                        set_dentry_mark(page,
                                                f2fs_need_dentry_mark(sbi, ino));
                                }
-                               /*  may be written by other thread */
+                               /* may be written by other thread */
                                if (!PageDirty(page))
                                        set_page_dirty(page);
                        }
@@ -2101,7 +2101,7 @@ const struct address_space_operations f2fs_node_aops = {
        .invalidatepage = f2fs_invalidate_page,
        .releasepage    = f2fs_release_page,
 #ifdef CONFIG_MIGRATION
-       .migratepage    = f2fs_migrate_page,
+       .migratepage    = f2fs_migrate_page,
 #endif
 };
 
index 50524401c8e6ea29978c89fc23f4040c473823bd..88ed9969cc86258972de0484d3ab193aebc1b6fb 100644 (file)
@@ -27,7 +27,7 @@ enum {
        NM_INFO,        /* struct f2fs_nm_info */
        F2FS_SBI,       /* struct f2fs_sb_info */
 #ifdef CONFIG_F2FS_STAT_FS
-       STAT_INFO,      /* struct f2fs_stat_info */
+       STAT_INFO,      /* struct f2fs_stat_info */
 #endif
 #ifdef CONFIG_F2FS_FAULT_INJECTION
        FAULT_INFO_RATE,        /* struct f2fs_fault_info */
@@ -717,7 +717,7 @@ static struct kobj_type f2fs_ktype = {
 };
 
 static struct kset f2fs_kset = {
-       .kobj   = {.ktype = &f2fs_ktype},
+       .kobj   = {.ktype = &f2fs_ktype},
 };
 
 static struct kobj_type f2fs_feat_ktype = {
index 4f6582ef7ee331b7b62c3c0a1c77e4c732f0d1a7..1b0736ce0918b52110ffe00c39903f6fe75de6cd 100644 (file)
@@ -175,8 +175,8 @@ const struct xattr_handler f2fs_xattr_trusted_handler = {
 const struct xattr_handler f2fs_xattr_advise_handler = {
        .name   = F2FS_SYSTEM_ADVISE_NAME,
        .flags  = F2FS_XATTR_INDEX_ADVISE,
-       .get    = f2fs_xattr_advise_get,
-       .set    = f2fs_xattr_advise_set,
+       .get    = f2fs_xattr_advise_get,
+       .set    = f2fs_xattr_advise_set,
 };
 
 const struct xattr_handler f2fs_xattr_security_handler = {