Skip to content

Commit 0a8165d

Browse files
author
Jaegeuk Kim
committed
f2fs: adjust kernel coding style
As pointed out by Randy Dunlap, this patch removes all usage of "/**" for comment blocks. Instead, just use "/*". Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
1 parent 25ca923 commit 0a8165d

21 files changed

Lines changed: 63 additions & 63 deletions

‎fs/f2fs/acl.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
* fs/f2fs/acl.c
33
*
44
* Copyright (c) 2012 Samsung Electronics Co., Ltd.

‎fs/f2fs/acl.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
* fs/f2fs/acl.h
33
*
44
* Copyright (c) 2012 Samsung Electronics Co., Ltd.

‎fs/f2fs/checkpoint.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
* fs/f2fs/checkpoint.c
33
*
44
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
@@ -24,7 +24,7 @@
2424
static struct kmem_cache *orphan_entry_slab;
2525
static struct kmem_cache *inode_entry_slab;
2626

27-
/**
27+
/*
2828
* We guarantee no failure on the returned page.
2929
*/
3030
struct page *grab_meta_page(struct f2fs_sb_info *sbi, pgoff_t index)
@@ -44,7 +44,7 @@ struct page *grab_meta_page(struct f2fs_sb_info *sbi, pgoff_t index)
4444
return page;
4545
}
4646

47-
/**
47+
/*
4848
* We guarantee no failure on the returned page.
4949
*/
5050
struct page *get_meta_page(struct f2fs_sb_info *sbi, pgoff_t index)
@@ -543,7 +543,7 @@ void sync_dirty_dir_inodes(struct f2fs_sb_info *sbi)
543543
goto retry;
544544
}
545545

546-
/**
546+
/*
547547
* Freeze all the FS-operations for checkpoint.
548548
*/
549549
void block_operations(struct f2fs_sb_info *sbi)
@@ -727,7 +727,7 @@ static void do_checkpoint(struct f2fs_sb_info *sbi, bool is_umount)
727727
F2FS_RESET_SB_DIRT(sbi);
728728
}
729729

730-
/**
730+
/*
731731
* We guarantee that this checkpoint procedure should not fail.
732732
*/
733733
void write_checkpoint(struct f2fs_sb_info *sbi, bool blocked, bool is_umount)

‎fs/f2fs/data.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
* fs/f2fs/data.c
33
*
44
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
@@ -21,7 +21,7 @@
2121
#include "node.h"
2222
#include "segment.h"
2323

24-
/**
24+
/*
2525
* Lock ordering for the change of data block address:
2626
* ->data_page
2727
* ->node_page
@@ -207,7 +207,7 @@ struct page *find_data_page(struct inode *inode, pgoff_t index)
207207
return page;
208208
}
209209

210-
/**
210+
/*
211211
* If it tries to access a hole, return an error.
212212
* Because, the callers, functions in dir.c and GC, should be able to know
213213
* whether this page exists or not.
@@ -247,7 +247,7 @@ struct page *get_lock_data_page(struct inode *inode, pgoff_t index)
247247
return page;
248248
}
249249

250-
/**
250+
/*
251251
* Caller ensures that this data page is never allocated.
252252
* A new zero-filled data page is allocated in the page cache.
253253
*/
@@ -322,7 +322,7 @@ static void read_end_io(struct bio *bio, int err)
322322
bio_put(bio);
323323
}
324324

325-
/**
325+
/*
326326
* Fill the locked page with data located in the block address.
327327
* Read operation is synchronous, and caller must unlock the page.
328328
*/
@@ -367,7 +367,7 @@ int f2fs_readpage(struct f2fs_sb_info *sbi, struct page *page,
367367
return 0;
368368
}
369369

370-
/**
370+
/*
371371
* This function should be used by the data read flow only where it
372372
* does not check the "create" flag that indicates block allocation.
373373
* The reason for this special functionality is to exploit VFS readahead

‎fs/f2fs/debug.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
* f2fs debugging statistics
33
*
44
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
@@ -78,7 +78,7 @@ static void update_general_status(struct f2fs_sb_info *sbi)
7878
}
7979
}
8080

81-
/**
81+
/*
8282
* This function calculates BDF of every segments
8383
*/
8484
static void update_sit_info(struct f2fs_sb_info *sbi)
@@ -113,7 +113,7 @@ static void update_sit_info(struct f2fs_sb_info *sbi)
113113
si->avg_vblocks = 0;
114114
}
115115

116-
/**
116+
/*
117117
* This function calculates memory footprint.
118118
*/
119119
static void update_mem_info(struct f2fs_sb_info *sbi)

‎fs/f2fs/dir.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
* fs/f2fs/dir.c
33
*
44
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
@@ -453,7 +453,7 @@ int f2fs_add_link(struct dentry *dentry, struct inode *inode)
453453
return err;
454454
}
455455

456-
/**
456+
/*
457457
* It only removes the dentry from the dentry page,corresponding name
458458
* entry in name page does not need to be touched during deletion.
459459
*/

‎fs/f2fs/f2fs.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
* fs/f2fs/f2fs.h
33
*
44
* Copyright (c) 2012 Samsung Electronics Co., Ltd.

‎fs/f2fs/file.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
* fs/f2fs/file.c
33
*
44
* Copyright (c) 2012 Samsung Electronics Co., Ltd.

‎fs/f2fs/gc.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
* fs/f2fs/gc.c
33
*
44
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
@@ -213,7 +213,7 @@ static unsigned int get_gc_cost(struct f2fs_sb_info *sbi, unsigned int segno,
213213
return get_cb_cost(sbi, segno);
214214
}
215215

216-
/**
216+
/*
217217
* This function is called from two pathes.
218218
* One is garbage collection and the other is SSR segment selection.
219219
* When it is called during GC, it just gets a victim segment
@@ -359,7 +359,7 @@ static int check_valid_map(struct f2fs_sb_info *sbi,
359359
return ret ? GC_OK : GC_NEXT;
360360
}
361361

362-
/**
362+
/*
363363
* This function compares node address got in summary with that in NAT.
364364
* On validity, copy that node with cold status, otherwise (invalid node)
365365
* ignore that.
@@ -425,7 +425,7 @@ static int gc_node_segment(struct f2fs_sb_info *sbi,
425425
return GC_DONE;
426426
}
427427

428-
/**
428+
/*
429429
* Calculate start block index that this node page contains
430430
*/
431431
block_t start_bidx_of_node(unsigned int node_ofs)
@@ -516,7 +516,7 @@ static void move_data_page(struct inode *inode, struct page *page, int gc_type)
516516
f2fs_put_page(page, 1);
517517
}
518518

519-
/**
519+
/*
520520
* This function tries to get parent node of victim data block, and identifies
521521
* data block validity. If the block is valid, copy that with cold status and
522522
* modify parent node.

‎fs/f2fs/gc.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
* fs/f2fs/gc.h
33
*
44
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
@@ -42,7 +42,7 @@ struct inode_entry {
4242
struct inode *inode;
4343
};
4444

45-
/**
45+
/*
4646
* inline functions
4747
*/
4848
static inline block_t free_user_blocks(struct f2fs_sb_info *sbi)

0 commit comments

Comments
 (0)