Skip to content

Commit a87aff1

Browse files
Jack QiuJaegeuk Kim
authored andcommitted
f2fs: space related cleanup
Just for code style, no logic change 1. delete useless space 2. change spaces into tab Signed-off-by: Jack Qiu <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent 99c787c commit a87aff1

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

fs/f2fs/checkpoint.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1415,7 +1415,7 @@ static int do_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc)
14151415
curseg_alloc_type(sbi, i + CURSEG_HOT_DATA);
14161416
}
14171417

1418-
/* 2 cp + n data seg summary + orphan inode blocks */
1418+
/* 2 cp + n data seg summary + orphan inode blocks */
14191419
data_sum_blocks = f2fs_npages_for_summary_flush(sbi, false);
14201420
spin_lock_irqsave(&sbi->cp_lock, flags);
14211421
if (data_sum_blocks < NR_CURSEG_DATA_TYPE)

fs/f2fs/data.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ static bool __is_cp_guaranteed(struct page *page)
8686
sbi = F2FS_I_SB(inode);
8787

8888
if (inode->i_ino == F2FS_META_INO(sbi) ||
89-
inode->i_ino == F2FS_NODE_INO(sbi) ||
89+
inode->i_ino == F2FS_NODE_INO(sbi) ||
9090
S_ISDIR(inode->i_mode) ||
9191
(S_ISREG(inode->i_mode) &&
9292
(f2fs_is_atomic_file(inode) || IS_NOQUOTA(inode))) ||
@@ -1146,7 +1146,7 @@ int f2fs_reserve_block(struct dnode_of_data *dn, pgoff_t index)
11461146

11471147
int f2fs_get_block(struct dnode_of_data *dn, pgoff_t index)
11481148
{
1149-
struct extent_info ei = {0,0,0};
1149+
struct extent_info ei = {0, 0, 0};
11501150
struct inode *inode = dn->inode;
11511151

11521152
if (f2fs_lookup_extent_cache(inode, index, &ei)) {

fs/f2fs/f2fs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,7 +1440,7 @@ struct f2fs_sb_info {
14401440
unsigned long last_time[MAX_TIME]; /* to store time in jiffies */
14411441
long interval_time[MAX_TIME]; /* to store thresholds */
14421442

1443-
struct inode_management im[MAX_INO_ENTRY]; /* manage inode cache */
1443+
struct inode_management im[MAX_INO_ENTRY]; /* manage inode cache */
14441444

14451445
spinlock_t fsync_node_lock; /* for node entry lock */
14461446
struct list_head fsync_node_list; /* node list head */
@@ -1520,7 +1520,7 @@ struct f2fs_sb_info {
15201520
unsigned int next_victim_seg[2]; /* next segment in victim section */
15211521

15221522
/* for skip statistic */
1523-
unsigned int atomic_files; /* # of opened atomic file */
1523+
unsigned int atomic_files; /* # of opened atomic file */
15241524
unsigned long long skipped_atomic_files[2]; /* FG_GC and BG_GC */
15251525
unsigned long long skipped_gc_rwsem; /* FG_GC only */
15261526

fs/f2fs/namei.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ static int f2fs_unlink(struct inode *dir, struct dentry *dentry)
602602
/* VFS negative dentries are incompatible with Encoding and
603603
* Case-insensitiveness. Eventually we'll want avoid
604604
* invalidating the dentries here, alongside with returning the
605-
* negative dentries at f2fs_lookup(), when it is better
605+
* negative dentries at f2fs_lookup(), when it is better
606606
* supported by the VFS for the CI case.
607607
*/
608608
if (IS_CASEFOLDED(dir))
@@ -1287,7 +1287,7 @@ static const char *f2fs_encrypted_get_link(struct dentry *dentry,
12871287
}
12881288

12891289
const struct inode_operations f2fs_encrypted_symlink_inode_operations = {
1290-
.get_link = f2fs_encrypted_get_link,
1290+
.get_link = f2fs_encrypted_get_link,
12911291
.getattr = f2fs_getattr,
12921292
.setattr = f2fs_setattr,
12931293
.listxattr = f2fs_listxattr,
@@ -1313,15 +1313,15 @@ const struct inode_operations f2fs_dir_inode_operations = {
13131313
};
13141314

13151315
const struct inode_operations f2fs_symlink_inode_operations = {
1316-
.get_link = f2fs_get_link,
1316+
.get_link = f2fs_get_link,
13171317
.getattr = f2fs_getattr,
13181318
.setattr = f2fs_setattr,
13191319
.listxattr = f2fs_listxattr,
13201320
};
13211321

13221322
const struct inode_operations f2fs_special_inode_operations = {
13231323
.getattr = f2fs_getattr,
1324-
.setattr = f2fs_setattr,
1324+
.setattr = f2fs_setattr,
13251325
.get_acl = f2fs_get_acl,
13261326
.set_acl = f2fs_set_acl,
13271327
.listxattr = f2fs_listxattr,

fs/f2fs/node.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1728,7 +1728,7 @@ int f2fs_fsync_node_pages(struct f2fs_sb_info *sbi, struct inode *inode,
17281728
set_dentry_mark(page,
17291729
f2fs_need_dentry_mark(sbi, ino));
17301730
}
1731-
/* may be written by other thread */
1731+
/* may be written by other thread */
17321732
if (!PageDirty(page))
17331733
set_page_dirty(page);
17341734
}
@@ -2101,7 +2101,7 @@ const struct address_space_operations f2fs_node_aops = {
21012101
.invalidatepage = f2fs_invalidate_page,
21022102
.releasepage = f2fs_release_page,
21032103
#ifdef CONFIG_MIGRATION
2104-
.migratepage = f2fs_migrate_page,
2104+
.migratepage = f2fs_migrate_page,
21052105
#endif
21062106
};
21072107

fs/f2fs/sysfs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ enum {
2727
NM_INFO, /* struct f2fs_nm_info */
2828
F2FS_SBI, /* struct f2fs_sb_info */
2929
#ifdef CONFIG_F2FS_STAT_FS
30-
STAT_INFO, /* struct f2fs_stat_info */
30+
STAT_INFO, /* struct f2fs_stat_info */
3131
#endif
3232
#ifdef CONFIG_F2FS_FAULT_INJECTION
3333
FAULT_INFO_RATE, /* struct f2fs_fault_info */
@@ -717,7 +717,7 @@ static struct kobj_type f2fs_ktype = {
717717
};
718718

719719
static struct kset f2fs_kset = {
720-
.kobj = {.ktype = &f2fs_ktype},
720+
.kobj = {.ktype = &f2fs_ktype},
721721
};
722722

723723
static struct kobj_type f2fs_feat_ktype = {

fs/f2fs/xattr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ const struct xattr_handler f2fs_xattr_trusted_handler = {
175175
const struct xattr_handler f2fs_xattr_advise_handler = {
176176
.name = F2FS_SYSTEM_ADVISE_NAME,
177177
.flags = F2FS_XATTR_INDEX_ADVISE,
178-
.get = f2fs_xattr_advise_get,
179-
.set = f2fs_xattr_advise_set,
178+
.get = f2fs_xattr_advise_get,
179+
.set = f2fs_xattr_advise_set,
180180
};
181181

182182
const struct xattr_handler f2fs_xattr_security_handler = {

0 commit comments

Comments
 (0)