aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/segment.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk.kim@samsung.com>2012-11-28 23:28:09 -0500
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2012-12-10 23:43:42 -0500
commit0a8165d7c2cf1395059db20ab07665baf3758fcd (patch)
tree6036856230364c8301db6798bb442f44e608a098 /fs/f2fs/segment.c
parent25ca923b2a766b9c93b63777ead351137533a623 (diff)
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>
Diffstat (limited to 'fs/f2fs/segment.c')
-rw-r--r--fs/f2fs/segment.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c
index d973c56e8bd6..a177eb387d38 100644
--- a/fs/f2fs/segment.c
+++ b/fs/f2fs/segment.c
@@ -1,4 +1,4 @@
1/** 1/*
2 * fs/f2fs/segment.c 2 * fs/f2fs/segment.c
3 * 3 *
4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
@@ -36,7 +36,7 @@ static int need_to_flush(struct f2fs_sb_info *sbi)
36 return 0; 36 return 0;
37} 37}
38 38
39/** 39/*
40 * This function balances dirty node and dentry pages. 40 * This function balances dirty node and dentry pages.
41 * In addition, it controls garbage collection. 41 * In addition, it controls garbage collection.
42 */ 42 */
@@ -105,7 +105,7 @@ static void __remove_dirty_segment(struct f2fs_sb_info *sbi, unsigned int segno,
105 } 105 }
106} 106}
107 107
108/** 108/*
109 * Should not occur error such as -ENOMEM. 109 * Should not occur error such as -ENOMEM.
110 * Adding dirty entry into seglist is not critical operation. 110 * Adding dirty entry into seglist is not critical operation.
111 * If a given segment is one of current working segments, it won't be added. 111 * If a given segment is one of current working segments, it won't be added.
@@ -136,7 +136,7 @@ void locate_dirty_segment(struct f2fs_sb_info *sbi, unsigned int segno)
136 return; 136 return;
137} 137}
138 138
139/** 139/*
140 * Should call clear_prefree_segments after checkpoint is done. 140 * Should call clear_prefree_segments after checkpoint is done.
141 */ 141 */
142static void set_prefree_as_free_segments(struct f2fs_sb_info *sbi) 142static void set_prefree_as_free_segments(struct f2fs_sb_info *sbi)
@@ -269,7 +269,7 @@ void invalidate_blocks(struct f2fs_sb_info *sbi, block_t addr)
269 mutex_unlock(&sit_i->sentry_lock); 269 mutex_unlock(&sit_i->sentry_lock);
270} 270}
271 271
272/** 272/*
273 * This function should be resided under the curseg_mutex lock 273 * This function should be resided under the curseg_mutex lock
274 */ 274 */
275static void __add_sum_entry(struct f2fs_sb_info *sbi, int type, 275static void __add_sum_entry(struct f2fs_sb_info *sbi, int type,
@@ -282,7 +282,7 @@ static void __add_sum_entry(struct f2fs_sb_info *sbi, int type,
282 return; 282 return;
283} 283}
284 284
285/** 285/*
286 * Calculate the number of current summary pages for writing 286 * Calculate the number of current summary pages for writing
287 */ 287 */
288int npages_for_summary_flush(struct f2fs_sb_info *sbi) 288int npages_for_summary_flush(struct f2fs_sb_info *sbi)
@@ -309,7 +309,7 @@ int npages_for_summary_flush(struct f2fs_sb_info *sbi)
309 return 3; 309 return 3;
310} 310}
311 311
312/** 312/*
313 * Caller should put this summary page 313 * Caller should put this summary page
314 */ 314 */
315struct page *get_sum_page(struct f2fs_sb_info *sbi, unsigned int segno) 315struct page *get_sum_page(struct f2fs_sb_info *sbi, unsigned int segno)
@@ -371,7 +371,7 @@ next:
371 return NULL_SEGNO; 371 return NULL_SEGNO;
372} 372}
373 373
374/** 374/*
375 * Find a new segment from the free segments bitmap to right order 375 * Find a new segment from the free segments bitmap to right order
376 * This function should be returned with success, otherwise BUG 376 * This function should be returned with success, otherwise BUG
377 */ 377 */
@@ -483,7 +483,7 @@ static void reset_curseg(struct f2fs_sb_info *sbi, int type, int modified)
483 __set_sit_entry_type(sbi, type, curseg->segno, modified); 483 __set_sit_entry_type(sbi, type, curseg->segno, modified);
484} 484}
485 485
486/** 486/*
487 * Allocate a current working segment. 487 * Allocate a current working segment.
488 * This function always allocates a free segment in LFS manner. 488 * This function always allocates a free segment in LFS manner.
489 */ 489 */
@@ -520,7 +520,7 @@ static void __next_free_blkoff(struct f2fs_sb_info *sbi,
520 seg->next_blkoff = ofs; 520 seg->next_blkoff = ofs;
521} 521}
522 522
523/** 523/*
524 * If a segment is written by LFS manner, next block offset is just obtained 524 * If a segment is written by LFS manner, next block offset is just obtained
525 * by increasing the current block offset. However, if a segment is written by 525 * by increasing the current block offset. However, if a segment is written by
526 * SSR manner, next block offset obtained by calling __next_free_blkoff 526 * SSR manner, next block offset obtained by calling __next_free_blkoff
@@ -534,7 +534,7 @@ static void __refresh_next_blkoff(struct f2fs_sb_info *sbi,
534 seg->next_blkoff++; 534 seg->next_blkoff++;
535} 535}
536 536
537/** 537/*
538 * This function always allocates a used segment (from dirty seglist) by SSR 538 * This function always allocates a used segment (from dirty seglist) by SSR
539 * manner, so it should recover the existing segment information of valid blocks 539 * manner, so it should recover the existing segment information of valid blocks
540 */ 540 */
@@ -1310,7 +1310,7 @@ static bool flush_sits_in_journal(struct f2fs_sb_info *sbi)
1310 return 0; 1310 return 0;
1311} 1311}
1312 1312
1313/** 1313/*
1314 * CP calls this function, which flushes SIT entries including sit_journal, 1314 * CP calls this function, which flushes SIT entries including sit_journal,
1315 * and moves prefree segs to free segs. 1315 * and moves prefree segs to free segs.
1316 */ 1316 */
@@ -1624,7 +1624,7 @@ static int build_dirty_segmap(struct f2fs_sb_info *sbi)
1624 return init_victim_segmap(sbi); 1624 return init_victim_segmap(sbi);
1625} 1625}
1626 1626
1627/** 1627/*
1628 * Update min, max modified time for cost-benefit GC algorithm 1628 * Update min, max modified time for cost-benefit GC algorithm
1629 */ 1629 */
1630static void init_min_max_mtime(struct f2fs_sb_info *sbi) 1630static void init_min_max_mtime(struct f2fs_sb_info *sbi)