diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2012-11-28 23:28:09 -0500 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2012-12-10 23:43:42 -0500 |
commit | 0a8165d7c2cf1395059db20ab07665baf3758fcd (patch) | |
tree | 6036856230364c8301db6798bb442f44e608a098 /fs | |
parent | 25ca923b2a766b9c93b63777ead351137533a623 (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')
-rw-r--r-- | fs/f2fs/acl.c | 2 | ||||
-rw-r--r-- | fs/f2fs/acl.h | 2 | ||||
-rw-r--r-- | fs/f2fs/checkpoint.c | 10 | ||||
-rw-r--r-- | fs/f2fs/data.c | 12 | ||||
-rw-r--r-- | fs/f2fs/debug.c | 6 | ||||
-rw-r--r-- | fs/f2fs/dir.c | 4 | ||||
-rw-r--r-- | fs/f2fs/f2fs.h | 2 | ||||
-rw-r--r-- | fs/f2fs/file.c | 2 | ||||
-rw-r--r-- | fs/f2fs/gc.c | 10 | ||||
-rw-r--r-- | fs/f2fs/gc.h | 4 | ||||
-rw-r--r-- | fs/f2fs/hash.c | 2 | ||||
-rw-r--r-- | fs/f2fs/inode.c | 4 | ||||
-rw-r--r-- | fs/f2fs/namei.c | 4 | ||||
-rw-r--r-- | fs/f2fs/node.c | 22 | ||||
-rw-r--r-- | fs/f2fs/node.h | 2 | ||||
-rw-r--r-- | fs/f2fs/recovery.c | 2 | ||||
-rw-r--r-- | fs/f2fs/segment.c | 26 | ||||
-rw-r--r-- | fs/f2fs/segment.h | 2 | ||||
-rw-r--r-- | fs/f2fs/super.c | 2 | ||||
-rw-r--r-- | fs/f2fs/xattr.c | 2 | ||||
-rw-r--r-- | fs/f2fs/xattr.h | 4 |
21 files changed, 63 insertions, 63 deletions
diff --git a/fs/f2fs/acl.c b/fs/f2fs/acl.c index dff2a2bfa755..1ac9a4b24f6e 100644 --- a/fs/f2fs/acl.c +++ b/fs/f2fs/acl.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /** | 1 | /* |
2 | * fs/f2fs/acl.c | 2 | * fs/f2fs/acl.c |
3 | * | 3 | * |
4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. | 4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. |
diff --git a/fs/f2fs/acl.h b/fs/f2fs/acl.h index c97675e18fe2..80f430674417 100644 --- a/fs/f2fs/acl.h +++ b/fs/f2fs/acl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /** | 1 | /* |
2 | * fs/f2fs/acl.h | 2 | * fs/f2fs/acl.h |
3 | * | 3 | * |
4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. | 4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. |
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index 7c18f8efaadc..6ef36c37e2be 100644 --- a/fs/f2fs/checkpoint.c +++ b/fs/f2fs/checkpoint.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /** | 1 | /* |
2 | * fs/f2fs/checkpoint.c | 2 | * fs/f2fs/checkpoint.c |
3 | * | 3 | * |
4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. | 4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. |
@@ -24,7 +24,7 @@ | |||
24 | static struct kmem_cache *orphan_entry_slab; | 24 | static struct kmem_cache *orphan_entry_slab; |
25 | static struct kmem_cache *inode_entry_slab; | 25 | static struct kmem_cache *inode_entry_slab; |
26 | 26 | ||
27 | /** | 27 | /* |
28 | * We guarantee no failure on the returned page. | 28 | * We guarantee no failure on the returned page. |
29 | */ | 29 | */ |
30 | struct page *grab_meta_page(struct f2fs_sb_info *sbi, pgoff_t index) | 30 | struct page *grab_meta_page(struct f2fs_sb_info *sbi, pgoff_t index) |
@@ -44,7 +44,7 @@ repeat: | |||
44 | return page; | 44 | return page; |
45 | } | 45 | } |
46 | 46 | ||
47 | /** | 47 | /* |
48 | * We guarantee no failure on the returned page. | 48 | * We guarantee no failure on the returned page. |
49 | */ | 49 | */ |
50 | struct page *get_meta_page(struct f2fs_sb_info *sbi, pgoff_t index) | 50 | struct page *get_meta_page(struct f2fs_sb_info *sbi, pgoff_t index) |
@@ -543,7 +543,7 @@ retry: | |||
543 | goto retry; | 543 | goto retry; |
544 | } | 544 | } |
545 | 545 | ||
546 | /** | 546 | /* |
547 | * Freeze all the FS-operations for checkpoint. | 547 | * Freeze all the FS-operations for checkpoint. |
548 | */ | 548 | */ |
549 | void block_operations(struct f2fs_sb_info *sbi) | 549 | void block_operations(struct f2fs_sb_info *sbi) |
@@ -727,7 +727,7 @@ static void do_checkpoint(struct f2fs_sb_info *sbi, bool is_umount) | |||
727 | F2FS_RESET_SB_DIRT(sbi); | 727 | F2FS_RESET_SB_DIRT(sbi); |
728 | } | 728 | } |
729 | 729 | ||
730 | /** | 730 | /* |
731 | * We guarantee that this checkpoint procedure should not fail. | 731 | * We guarantee that this checkpoint procedure should not fail. |
732 | */ | 732 | */ |
733 | void write_checkpoint(struct f2fs_sb_info *sbi, bool blocked, bool is_umount) | 733 | void write_checkpoint(struct f2fs_sb_info *sbi, bool blocked, bool is_umount) |
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 5635cc5a9d4d..444c2a6fbaa0 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /** | 1 | /* |
2 | * fs/f2fs/data.c | 2 | * fs/f2fs/data.c |
3 | * | 3 | * |
4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. | 4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. |
@@ -21,7 +21,7 @@ | |||
21 | #include "node.h" | 21 | #include "node.h" |
22 | #include "segment.h" | 22 | #include "segment.h" |
23 | 23 | ||
24 | /** | 24 | /* |
25 | * Lock ordering for the change of data block address: | 25 | * Lock ordering for the change of data block address: |
26 | * ->data_page | 26 | * ->data_page |
27 | * ->node_page | 27 | * ->node_page |
@@ -207,7 +207,7 @@ struct page *find_data_page(struct inode *inode, pgoff_t index) | |||
207 | return page; | 207 | return page; |
208 | } | 208 | } |
209 | 209 | ||
210 | /** | 210 | /* |
211 | * If it tries to access a hole, return an error. | 211 | * If it tries to access a hole, return an error. |
212 | * Because, the callers, functions in dir.c and GC, should be able to know | 212 | * Because, the callers, functions in dir.c and GC, should be able to know |
213 | * whether this page exists or not. | 213 | * whether this page exists or not. |
@@ -247,7 +247,7 @@ struct page *get_lock_data_page(struct inode *inode, pgoff_t index) | |||
247 | return page; | 247 | return page; |
248 | } | 248 | } |
249 | 249 | ||
250 | /** | 250 | /* |
251 | * Caller ensures that this data page is never allocated. | 251 | * Caller ensures that this data page is never allocated. |
252 | * A new zero-filled data page is allocated in the page cache. | 252 | * A new zero-filled data page is allocated in the page cache. |
253 | */ | 253 | */ |
@@ -322,7 +322,7 @@ static void read_end_io(struct bio *bio, int err) | |||
322 | bio_put(bio); | 322 | bio_put(bio); |
323 | } | 323 | } |
324 | 324 | ||
325 | /** | 325 | /* |
326 | * Fill the locked page with data located in the block address. | 326 | * Fill the locked page with data located in the block address. |
327 | * Read operation is synchronous, and caller must unlock the page. | 327 | * Read operation is synchronous, and caller must unlock the page. |
328 | */ | 328 | */ |
@@ -367,7 +367,7 @@ int f2fs_readpage(struct f2fs_sb_info *sbi, struct page *page, | |||
367 | return 0; | 367 | return 0; |
368 | } | 368 | } |
369 | 369 | ||
370 | /** | 370 | /* |
371 | * This function should be used by the data read flow only where it | 371 | * This function should be used by the data read flow only where it |
372 | * does not check the "create" flag that indicates block allocation. | 372 | * does not check the "create" flag that indicates block allocation. |
373 | * The reason for this special functionality is to exploit VFS readahead | 373 | * The reason for this special functionality is to exploit VFS readahead |
diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c index fb62960a1dc1..0e0380a588ad 100644 --- a/fs/f2fs/debug.c +++ b/fs/f2fs/debug.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /** | 1 | /* |
2 | * f2fs debugging statistics | 2 | * f2fs debugging statistics |
3 | * | 3 | * |
4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. | 4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. |
@@ -78,7 +78,7 @@ static void update_general_status(struct f2fs_sb_info *sbi) | |||
78 | } | 78 | } |
79 | } | 79 | } |
80 | 80 | ||
81 | /** | 81 | /* |
82 | * This function calculates BDF of every segments | 82 | * This function calculates BDF of every segments |
83 | */ | 83 | */ |
84 | static void update_sit_info(struct f2fs_sb_info *sbi) | 84 | static void update_sit_info(struct f2fs_sb_info *sbi) |
@@ -113,7 +113,7 @@ static void update_sit_info(struct f2fs_sb_info *sbi) | |||
113 | si->avg_vblocks = 0; | 113 | si->avg_vblocks = 0; |
114 | } | 114 | } |
115 | 115 | ||
116 | /** | 116 | /* |
117 | * This function calculates memory footprint. | 117 | * This function calculates memory footprint. |
118 | */ | 118 | */ |
119 | static void update_mem_info(struct f2fs_sb_info *sbi) | 119 | static void update_mem_info(struct f2fs_sb_info *sbi) |
diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c index 5ec7a06120e1..089eb6766890 100644 --- a/fs/f2fs/dir.c +++ b/fs/f2fs/dir.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /** | 1 | /* |
2 | * fs/f2fs/dir.c | 2 | * fs/f2fs/dir.c |
3 | * | 3 | * |
4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. | 4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. |
@@ -453,7 +453,7 @@ fail: | |||
453 | return err; | 453 | return err; |
454 | } | 454 | } |
455 | 455 | ||
456 | /** | 456 | /* |
457 | * It only removes the dentry from the dentry page,corresponding name | 457 | * It only removes the dentry from the dentry page,corresponding name |
458 | * entry in name page does not need to be touched during deletion. | 458 | * entry in name page does not need to be touched during deletion. |
459 | */ | 459 | */ |
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 8d7fde1bda1e..8c3f1ef6ace2 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /** | 1 | /* |
2 | * fs/f2fs/f2fs.h | 2 | * fs/f2fs/f2fs.h |
3 | * | 3 | * |
4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. | 4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. |
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index f5ae36d19f4f..c1a108ffbfcc 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /** | 1 | /* |
2 | * fs/f2fs/file.c | 2 | * fs/f2fs/file.c |
3 | * | 3 | * |
4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. | 4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. |
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index 46774ce3ae03..3271be42c0b6 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /** | 1 | /* |
2 | * fs/f2fs/gc.c | 2 | * fs/f2fs/gc.c |
3 | * | 3 | * |
4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. | 4 | * 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, | |||
213 | return get_cb_cost(sbi, segno); | 213 | return get_cb_cost(sbi, segno); |
214 | } | 214 | } |
215 | 215 | ||
216 | /** | 216 | /* |
217 | * This function is called from two pathes. | 217 | * This function is called from two pathes. |
218 | * One is garbage collection and the other is SSR segment selection. | 218 | * One is garbage collection and the other is SSR segment selection. |
219 | * When it is called during GC, it just gets a victim segment | 219 | * 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, | |||
359 | return ret ? GC_OK : GC_NEXT; | 359 | return ret ? GC_OK : GC_NEXT; |
360 | } | 360 | } |
361 | 361 | ||
362 | /** | 362 | /* |
363 | * This function compares node address got in summary with that in NAT. | 363 | * This function compares node address got in summary with that in NAT. |
364 | * On validity, copy that node with cold status, otherwise (invalid node) | 364 | * On validity, copy that node with cold status, otherwise (invalid node) |
365 | * ignore that. | 365 | * ignore that. |
@@ -425,7 +425,7 @@ next_step: | |||
425 | return GC_DONE; | 425 | return GC_DONE; |
426 | } | 426 | } |
427 | 427 | ||
428 | /** | 428 | /* |
429 | * Calculate start block index that this node page contains | 429 | * Calculate start block index that this node page contains |
430 | */ | 430 | */ |
431 | block_t start_bidx_of_node(unsigned int node_ofs) | 431 | block_t start_bidx_of_node(unsigned int node_ofs) |
@@ -516,7 +516,7 @@ out: | |||
516 | f2fs_put_page(page, 1); | 516 | f2fs_put_page(page, 1); |
517 | } | 517 | } |
518 | 518 | ||
519 | /** | 519 | /* |
520 | * This function tries to get parent node of victim data block, and identifies | 520 | * This function tries to get parent node of victim data block, and identifies |
521 | * data block validity. If the block is valid, copy that with cold status and | 521 | * data block validity. If the block is valid, copy that with cold status and |
522 | * modify parent node. | 522 | * modify parent node. |
diff --git a/fs/f2fs/gc.h b/fs/f2fs/gc.h index cf42a554ca0a..b026d9354ccd 100644 --- a/fs/f2fs/gc.h +++ b/fs/f2fs/gc.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /** | 1 | /* |
2 | * fs/f2fs/gc.h | 2 | * fs/f2fs/gc.h |
3 | * | 3 | * |
4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. | 4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. |
@@ -42,7 +42,7 @@ struct inode_entry { | |||
42 | struct inode *inode; | 42 | struct inode *inode; |
43 | }; | 43 | }; |
44 | 44 | ||
45 | /** | 45 | /* |
46 | * inline functions | 46 | * inline functions |
47 | */ | 47 | */ |
48 | static inline block_t free_user_blocks(struct f2fs_sb_info *sbi) | 48 | static inline block_t free_user_blocks(struct f2fs_sb_info *sbi) |
diff --git a/fs/f2fs/hash.c b/fs/f2fs/hash.c index beb155e8d06d..a60f04200f8b 100644 --- a/fs/f2fs/hash.c +++ b/fs/f2fs/hash.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /** | 1 | /* |
2 | * fs/f2fs/hash.c | 2 | * fs/f2fs/hash.c |
3 | * | 3 | * |
4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. | 4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. |
diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c index 94f13d2815e9..aa4ef4f48ffd 100644 --- a/fs/f2fs/inode.c +++ b/fs/f2fs/inode.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /** | 1 | /* |
2 | * fs/f2fs/inode.c | 2 | * fs/f2fs/inode.c |
3 | * | 3 | * |
4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. | 4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. |
@@ -235,7 +235,7 @@ int f2fs_write_inode(struct inode *inode, struct writeback_control *wbc) | |||
235 | return 0; | 235 | return 0; |
236 | } | 236 | } |
237 | 237 | ||
238 | /** | 238 | /* |
239 | * Called at the last iput() if i_nlink is zero | 239 | * Called at the last iput() if i_nlink is zero |
240 | */ | 240 | */ |
241 | void f2fs_evict_inode(struct inode *inode) | 241 | void f2fs_evict_inode(struct inode *inode) |
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index aec362f6f0b0..63efd77fab92 100644 --- a/fs/f2fs/namei.c +++ b/fs/f2fs/namei.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /** | 1 | /* |
2 | * fs/f2fs/namei.c | 2 | * fs/f2fs/namei.c |
3 | * | 3 | * |
4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. | 4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. |
@@ -96,7 +96,7 @@ static int is_multimedia_file(const unsigned char *s, const char *sub) | |||
96 | return ret; | 96 | return ret; |
97 | } | 97 | } |
98 | 98 | ||
99 | /** | 99 | /* |
100 | * Set multimedia files as cold files for hot/cold data separation | 100 | * Set multimedia files as cold files for hot/cold data separation |
101 | */ | 101 | */ |
102 | static inline void set_cold_file(struct f2fs_sb_info *sbi, struct inode *inode, | 102 | static inline void set_cold_file(struct f2fs_sb_info *sbi, struct inode *inode, |
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index 5d421fe22575..25d303646da7 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /** | 1 | /* |
2 | * fs/f2fs/node.c | 2 | * fs/f2fs/node.c |
3 | * | 3 | * |
4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. | 4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. |
@@ -81,7 +81,7 @@ static struct page *get_next_nat_page(struct f2fs_sb_info *sbi, nid_t nid) | |||
81 | return dst_page; | 81 | return dst_page; |
82 | } | 82 | } |
83 | 83 | ||
84 | /** | 84 | /* |
85 | * Readahead NAT pages | 85 | * Readahead NAT pages |
86 | */ | 86 | */ |
87 | static void ra_nat_pages(struct f2fs_sb_info *sbi, int nid) | 87 | static void ra_nat_pages(struct f2fs_sb_info *sbi, int nid) |
@@ -251,7 +251,7 @@ static int try_to_free_nats(struct f2fs_sb_info *sbi, int nr_shrink) | |||
251 | return nr_shrink; | 251 | return nr_shrink; |
252 | } | 252 | } |
253 | 253 | ||
254 | /** | 254 | /* |
255 | * This function returns always success | 255 | * This function returns always success |
256 | */ | 256 | */ |
257 | void get_node_info(struct f2fs_sb_info *sbi, nid_t nid, struct node_info *ni) | 257 | void get_node_info(struct f2fs_sb_info *sbi, nid_t nid, struct node_info *ni) |
@@ -302,7 +302,7 @@ cache: | |||
302 | cache_nat_entry(NM_I(sbi), nid, &ne); | 302 | cache_nat_entry(NM_I(sbi), nid, &ne); |
303 | } | 303 | } |
304 | 304 | ||
305 | /** | 305 | /* |
306 | * The maximum depth is four. | 306 | * The maximum depth is four. |
307 | * Offset[0] will have raw inode offset. | 307 | * Offset[0] will have raw inode offset. |
308 | */ | 308 | */ |
@@ -649,7 +649,7 @@ fail: | |||
649 | return err; | 649 | return err; |
650 | } | 650 | } |
651 | 651 | ||
652 | /** | 652 | /* |
653 | * All the block addresses of data and nodes should be nullified. | 653 | * All the block addresses of data and nodes should be nullified. |
654 | */ | 654 | */ |
655 | int truncate_inode_blocks(struct inode *inode, pgoff_t from) | 655 | int truncate_inode_blocks(struct inode *inode, pgoff_t from) |
@@ -860,7 +860,7 @@ static int read_node_page(struct page *page, int type) | |||
860 | return f2fs_readpage(sbi, page, ni.blk_addr, type); | 860 | return f2fs_readpage(sbi, page, ni.blk_addr, type); |
861 | } | 861 | } |
862 | 862 | ||
863 | /** | 863 | /* |
864 | * Readahead a node page | 864 | * Readahead a node page |
865 | */ | 865 | */ |
866 | void ra_node_page(struct f2fs_sb_info *sbi, nid_t nid) | 866 | void ra_node_page(struct f2fs_sb_info *sbi, nid_t nid) |
@@ -910,7 +910,7 @@ struct page *get_node_page(struct f2fs_sb_info *sbi, pgoff_t nid) | |||
910 | return page; | 910 | return page; |
911 | } | 911 | } |
912 | 912 | ||
913 | /** | 913 | /* |
914 | * Return a locked page for the desired node page. | 914 | * Return a locked page for the desired node page. |
915 | * And, readahead MAX_RA_NODE number of node pages. | 915 | * And, readahead MAX_RA_NODE number of node pages. |
916 | */ | 916 | */ |
@@ -1186,7 +1186,7 @@ static int f2fs_release_node_page(struct page *page, gfp_t wait) | |||
1186 | return 0; | 1186 | return 0; |
1187 | } | 1187 | } |
1188 | 1188 | ||
1189 | /** | 1189 | /* |
1190 | * Structure of the f2fs node operations | 1190 | * Structure of the f2fs node operations |
1191 | */ | 1191 | */ |
1192 | const struct address_space_operations f2fs_node_aops = { | 1192 | const struct address_space_operations f2fs_node_aops = { |
@@ -1386,7 +1386,7 @@ retry: | |||
1386 | return true; | 1386 | return true; |
1387 | } | 1387 | } |
1388 | 1388 | ||
1389 | /** | 1389 | /* |
1390 | * alloc_nid() should be called prior to this function. | 1390 | * alloc_nid() should be called prior to this function. |
1391 | */ | 1391 | */ |
1392 | void alloc_nid_done(struct f2fs_sb_info *sbi, nid_t nid) | 1392 | void alloc_nid_done(struct f2fs_sb_info *sbi, nid_t nid) |
@@ -1403,7 +1403,7 @@ void alloc_nid_done(struct f2fs_sb_info *sbi, nid_t nid) | |||
1403 | spin_unlock(&nm_i->free_nid_list_lock); | 1403 | spin_unlock(&nm_i->free_nid_list_lock); |
1404 | } | 1404 | } |
1405 | 1405 | ||
1406 | /** | 1406 | /* |
1407 | * alloc_nid() should be called prior to this function. | 1407 | * alloc_nid() should be called prior to this function. |
1408 | */ | 1408 | */ |
1409 | void alloc_nid_failed(struct f2fs_sb_info *sbi, nid_t nid) | 1409 | void alloc_nid_failed(struct f2fs_sb_info *sbi, nid_t nid) |
@@ -1545,7 +1545,7 @@ retry: | |||
1545 | return true; | 1545 | return true; |
1546 | } | 1546 | } |
1547 | 1547 | ||
1548 | /** | 1548 | /* |
1549 | * This function is called during the checkpointing process. | 1549 | * This function is called during the checkpointing process. |
1550 | */ | 1550 | */ |
1551 | void flush_nat_entries(struct f2fs_sb_info *sbi) | 1551 | void flush_nat_entries(struct f2fs_sb_info *sbi) |
diff --git a/fs/f2fs/node.h b/fs/f2fs/node.h index 0ab92d643052..afdb130f782e 100644 --- a/fs/f2fs/node.h +++ b/fs/f2fs/node.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /** | 1 | /* |
2 | * fs/f2fs/node.h | 2 | * fs/f2fs/node.h |
3 | * | 3 | * |
4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. | 4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. |
diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c index 222a7bb92214..b07e9b6ef376 100644 --- a/fs/f2fs/recovery.c +++ b/fs/f2fs/recovery.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /** | 1 | /* |
2 | * fs/f2fs/recovery.c | 2 | * fs/f2fs/recovery.c |
3 | * | 3 | * |
4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. | 4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. |
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 | */ |
142 | static void set_prefree_as_free_segments(struct f2fs_sb_info *sbi) | 142 | static 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 | */ |
275 | static void __add_sum_entry(struct f2fs_sb_info *sbi, int type, | 275 | static 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 | */ |
288 | int npages_for_summary_flush(struct f2fs_sb_info *sbi) | 288 | int 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 | */ |
315 | struct page *get_sum_page(struct f2fs_sb_info *sbi, unsigned int segno) | 315 | struct 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 | */ |
1630 | static void init_min_max_mtime(struct f2fs_sb_info *sbi) | 1630 | static void init_min_max_mtime(struct f2fs_sb_info *sbi) |
diff --git a/fs/f2fs/segment.h b/fs/f2fs/segment.h index e380a8ef13f5..2c445f8947c9 100644 --- a/fs/f2fs/segment.h +++ b/fs/f2fs/segment.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /** | 1 | /* |
2 | * fs/f2fs/segment.h | 2 | * fs/f2fs/segment.h |
3 | * | 3 | * |
4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. | 4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. |
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 878bf382f848..4360600c81e8 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /** | 1 | /* |
2 | * fs/f2fs/super.c | 2 | * fs/f2fs/super.c |
3 | * | 3 | * |
4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. | 4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. |
diff --git a/fs/f2fs/xattr.c b/fs/f2fs/xattr.c index aca50fe163f6..5324d1e9d168 100644 --- a/fs/f2fs/xattr.c +++ b/fs/f2fs/xattr.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /** | 1 | /* |
2 | * fs/f2fs/xattr.c | 2 | * fs/f2fs/xattr.c |
3 | * | 3 | * |
4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. | 4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. |
diff --git a/fs/f2fs/xattr.h b/fs/f2fs/xattr.h index 29b0a08e1e14..49c9558305e3 100644 --- a/fs/f2fs/xattr.h +++ b/fs/f2fs/xattr.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /** | 1 | /* |
2 | * fs/f2fs/xattr.h | 2 | * fs/f2fs/xattr.h |
3 | * | 3 | * |
4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. | 4 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. |
@@ -77,7 +77,7 @@ struct f2fs_xattr_entry { | |||
77 | #define MAX_VALUE_LEN (MIN_OFFSET - sizeof(struct f2fs_xattr_header) - \ | 77 | #define MAX_VALUE_LEN (MIN_OFFSET - sizeof(struct f2fs_xattr_header) - \ |
78 | sizeof(struct f2fs_xattr_entry)) | 78 | sizeof(struct f2fs_xattr_entry)) |
79 | 79 | ||
80 | /** | 80 | /* |
81 | * On-disk structure of f2fs_xattr | 81 | * On-disk structure of f2fs_xattr |
82 | * We use only 1 block for xattr. | 82 | * We use only 1 block for xattr. |
83 | * | 83 | * |