Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+63 -63
+1 -1
fs/f2fs/acl.c
··· 1 - /** 1 + /* 2 2 * fs/f2fs/acl.c 3 3 * 4 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
+1 -1
fs/f2fs/acl.h
··· 1 - /** 1 + /* 2 2 * fs/f2fs/acl.h 3 3 * 4 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
+5 -5
fs/f2fs/checkpoint.c
··· 1 - /** 1 + /* 2 2 * fs/f2fs/checkpoint.c 3 3 * 4 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. ··· 24 24 static struct kmem_cache *orphan_entry_slab; 25 25 static struct kmem_cache *inode_entry_slab; 26 26 27 - /** 27 + /* 28 28 * We guarantee no failure on the returned page. 29 29 */ 30 30 struct page *grab_meta_page(struct f2fs_sb_info *sbi, pgoff_t index) ··· 44 44 return page; 45 45 } 46 46 47 - /** 47 + /* 48 48 * We guarantee no failure on the returned page. 49 49 */ 50 50 struct page *get_meta_page(struct f2fs_sb_info *sbi, pgoff_t index) ··· 543 543 goto retry; 544 544 } 545 545 546 - /** 546 + /* 547 547 * Freeze all the FS-operations for checkpoint. 548 548 */ 549 549 void block_operations(struct f2fs_sb_info *sbi) ··· 727 727 F2FS_RESET_SB_DIRT(sbi); 728 728 } 729 729 730 - /** 730 + /* 731 731 * We guarantee that this checkpoint procedure should not fail. 732 732 */ 733 733 void write_checkpoint(struct f2fs_sb_info *sbi, bool blocked, bool is_umount)
+6 -6
fs/f2fs/data.c
··· 1 - /** 1 + /* 2 2 * fs/f2fs/data.c 3 3 * 4 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. ··· 21 21 #include "node.h" 22 22 #include "segment.h" 23 23 24 - /** 24 + /* 25 25 * Lock ordering for the change of data block address: 26 26 * ->data_page 27 27 * ->node_page ··· 207 207 return page; 208 208 } 209 209 210 - /** 210 + /* 211 211 * If it tries to access a hole, return an error. 212 212 * Because, the callers, functions in dir.c and GC, should be able to know 213 213 * whether this page exists or not. ··· 247 247 return page; 248 248 } 249 249 250 - /** 250 + /* 251 251 * Caller ensures that this data page is never allocated. 252 252 * A new zero-filled data page is allocated in the page cache. 253 253 */ ··· 322 322 bio_put(bio); 323 323 } 324 324 325 - /** 325 + /* 326 326 * Fill the locked page with data located in the block address. 327 327 * Read operation is synchronous, and caller must unlock the page. 328 328 */ ··· 367 367 return 0; 368 368 } 369 369 370 - /** 370 + /* 371 371 * This function should be used by the data read flow only where it 372 372 * does not check the "create" flag that indicates block allocation. 373 373 * The reason for this special functionality is to exploit VFS readahead
+3 -3
fs/f2fs/debug.c
··· 1 - /** 1 + /* 2 2 * f2fs debugging statistics 3 3 * 4 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. ··· 78 78 } 79 79 } 80 80 81 - /** 81 + /* 82 82 * This function calculates BDF of every segments 83 83 */ 84 84 static void update_sit_info(struct f2fs_sb_info *sbi) ··· 113 113 si->avg_vblocks = 0; 114 114 } 115 115 116 - /** 116 + /* 117 117 * This function calculates memory footprint. 118 118 */ 119 119 static void update_mem_info(struct f2fs_sb_info *sbi)
+2 -2
fs/f2fs/dir.c
··· 1 - /** 1 + /* 2 2 * fs/f2fs/dir.c 3 3 * 4 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. ··· 453 453 return err; 454 454 } 455 455 456 - /** 456 + /* 457 457 * It only removes the dentry from the dentry page,corresponding name 458 458 * entry in name page does not need to be touched during deletion. 459 459 */
+1 -1
fs/f2fs/f2fs.h
··· 1 - /** 1 + /* 2 2 * fs/f2fs/f2fs.h 3 3 * 4 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
+1 -1
fs/f2fs/file.c
··· 1 - /** 1 + /* 2 2 * fs/f2fs/file.c 3 3 * 4 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
+5 -5
fs/f2fs/gc.c
··· 1 - /** 1 + /* 2 2 * fs/f2fs/gc.c 3 3 * 4 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. ··· 213 213 return get_cb_cost(sbi, segno); 214 214 } 215 215 216 - /** 216 + /* 217 217 * This function is called from two pathes. 218 218 * One is garbage collection and the other is SSR segment selection. 219 219 * When it is called during GC, it just gets a victim segment ··· 359 359 return ret ? GC_OK : GC_NEXT; 360 360 } 361 361 362 - /** 362 + /* 363 363 * This function compares node address got in summary with that in NAT. 364 364 * On validity, copy that node with cold status, otherwise (invalid node) 365 365 * ignore that. ··· 425 425 return GC_DONE; 426 426 } 427 427 428 - /** 428 + /* 429 429 * Calculate start block index that this node page contains 430 430 */ 431 431 block_t start_bidx_of_node(unsigned int node_ofs) ··· 516 516 f2fs_put_page(page, 1); 517 517 } 518 518 519 - /** 519 + /* 520 520 * This function tries to get parent node of victim data block, and identifies 521 521 * data block validity. If the block is valid, copy that with cold status and 522 522 * modify parent node.
+2 -2
fs/f2fs/gc.h
··· 1 - /** 1 + /* 2 2 * fs/f2fs/gc.h 3 3 * 4 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. ··· 42 42 struct inode *inode; 43 43 }; 44 44 45 - /** 45 + /* 46 46 * inline functions 47 47 */ 48 48 static inline block_t free_user_blocks(struct f2fs_sb_info *sbi)
+1 -1
fs/f2fs/hash.c
··· 1 - /** 1 + /* 2 2 * fs/f2fs/hash.c 3 3 * 4 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
+2 -2
fs/f2fs/inode.c
··· 1 - /** 1 + /* 2 2 * fs/f2fs/inode.c 3 3 * 4 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. ··· 235 235 return 0; 236 236 } 237 237 238 - /** 238 + /* 239 239 * Called at the last iput() if i_nlink is zero 240 240 */ 241 241 void f2fs_evict_inode(struct inode *inode)
+2 -2
fs/f2fs/namei.c
··· 1 - /** 1 + /* 2 2 * fs/f2fs/namei.c 3 3 * 4 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. ··· 96 96 return ret; 97 97 } 98 98 99 - /** 99 + /* 100 100 * Set multimedia files as cold files for hot/cold data separation 101 101 */ 102 102 static inline void set_cold_file(struct f2fs_sb_info *sbi, struct inode *inode,
+11 -11
fs/f2fs/node.c
··· 1 - /** 1 + /* 2 2 * fs/f2fs/node.c 3 3 * 4 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. ··· 81 81 return dst_page; 82 82 } 83 83 84 - /** 84 + /* 85 85 * Readahead NAT pages 86 86 */ 87 87 static void ra_nat_pages(struct f2fs_sb_info *sbi, int nid) ··· 251 251 return nr_shrink; 252 252 } 253 253 254 - /** 254 + /* 255 255 * This function returns always success 256 256 */ 257 257 void get_node_info(struct f2fs_sb_info *sbi, nid_t nid, struct node_info *ni) ··· 302 302 cache_nat_entry(NM_I(sbi), nid, &ne); 303 303 } 304 304 305 - /** 305 + /* 306 306 * The maximum depth is four. 307 307 * Offset[0] will have raw inode offset. 308 308 */ ··· 649 649 return err; 650 650 } 651 651 652 - /** 652 + /* 653 653 * All the block addresses of data and nodes should be nullified. 654 654 */ 655 655 int truncate_inode_blocks(struct inode *inode, pgoff_t from) ··· 860 860 return f2fs_readpage(sbi, page, ni.blk_addr, type); 861 861 } 862 862 863 - /** 863 + /* 864 864 * Readahead a node page 865 865 */ 866 866 void ra_node_page(struct f2fs_sb_info *sbi, nid_t nid) ··· 910 910 return page; 911 911 } 912 912 913 - /** 913 + /* 914 914 * Return a locked page for the desired node page. 915 915 * And, readahead MAX_RA_NODE number of node pages. 916 916 */ ··· 1186 1186 return 0; 1187 1187 } 1188 1188 1189 - /** 1189 + /* 1190 1190 * Structure of the f2fs node operations 1191 1191 */ 1192 1192 const struct address_space_operations f2fs_node_aops = { ··· 1386 1386 return true; 1387 1387 } 1388 1388 1389 - /** 1389 + /* 1390 1390 * alloc_nid() should be called prior to this function. 1391 1391 */ 1392 1392 void alloc_nid_done(struct f2fs_sb_info *sbi, nid_t nid) ··· 1403 1403 spin_unlock(&nm_i->free_nid_list_lock); 1404 1404 } 1405 1405 1406 - /** 1406 + /* 1407 1407 * alloc_nid() should be called prior to this function. 1408 1408 */ 1409 1409 void alloc_nid_failed(struct f2fs_sb_info *sbi, nid_t nid) ··· 1545 1545 return true; 1546 1546 } 1547 1547 1548 - /** 1548 + /* 1549 1549 * This function is called during the checkpointing process. 1550 1550 */ 1551 1551 void flush_nat_entries(struct f2fs_sb_info *sbi)
+1 -1
fs/f2fs/node.h
··· 1 - /** 1 + /* 2 2 * fs/f2fs/node.h 3 3 * 4 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
+1 -1
fs/f2fs/recovery.c
··· 1 - /** 1 + /* 2 2 * fs/f2fs/recovery.c 3 3 * 4 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
+13 -13
fs/f2fs/segment.c
··· 1 - /** 1 + /* 2 2 * fs/f2fs/segment.c 3 3 * 4 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. ··· 36 36 return 0; 37 37 } 38 38 39 - /** 39 + /* 40 40 * This function balances dirty node and dentry pages. 41 41 * In addition, it controls garbage collection. 42 42 */ ··· 105 105 } 106 106 } 107 107 108 - /** 108 + /* 109 109 * Should not occur error such as -ENOMEM. 110 110 * Adding dirty entry into seglist is not critical operation. 111 111 * If a given segment is one of current working segments, it won't be added. ··· 136 136 return; 137 137 } 138 138 139 - /** 139 + /* 140 140 * Should call clear_prefree_segments after checkpoint is done. 141 141 */ 142 142 static void set_prefree_as_free_segments(struct f2fs_sb_info *sbi) ··· 269 269 mutex_unlock(&sit_i->sentry_lock); 270 270 } 271 271 272 - /** 272 + /* 273 273 * This function should be resided under the curseg_mutex lock 274 274 */ 275 275 static void __add_sum_entry(struct f2fs_sb_info *sbi, int type, ··· 282 282 return; 283 283 } 284 284 285 - /** 285 + /* 286 286 * Calculate the number of current summary pages for writing 287 287 */ 288 288 int npages_for_summary_flush(struct f2fs_sb_info *sbi) ··· 309 309 return 3; 310 310 } 311 311 312 - /** 312 + /* 313 313 * Caller should put this summary page 314 314 */ 315 315 struct page *get_sum_page(struct f2fs_sb_info *sbi, unsigned int segno) ··· 371 371 return NULL_SEGNO; 372 372 } 373 373 374 - /** 374 + /* 375 375 * Find a new segment from the free segments bitmap to right order 376 376 * This function should be returned with success, otherwise BUG 377 377 */ ··· 483 483 __set_sit_entry_type(sbi, type, curseg->segno, modified); 484 484 } 485 485 486 - /** 486 + /* 487 487 * Allocate a current working segment. 488 488 * This function always allocates a free segment in LFS manner. 489 489 */ ··· 520 520 seg->next_blkoff = ofs; 521 521 } 522 522 523 - /** 523 + /* 524 524 * If a segment is written by LFS manner, next block offset is just obtained 525 525 * by increasing the current block offset. However, if a segment is written by 526 526 * SSR manner, next block offset obtained by calling __next_free_blkoff ··· 534 534 seg->next_blkoff++; 535 535 } 536 536 537 - /** 537 + /* 538 538 * This function always allocates a used segment (from dirty seglist) by SSR 539 539 * manner, so it should recover the existing segment information of valid blocks 540 540 */ ··· 1310 1310 return 0; 1311 1311 } 1312 1312 1313 - /** 1313 + /* 1314 1314 * CP calls this function, which flushes SIT entries including sit_journal, 1315 1315 * and moves prefree segs to free segs. 1316 1316 */ ··· 1624 1624 return init_victim_segmap(sbi); 1625 1625 } 1626 1626 1627 - /** 1627 + /* 1628 1628 * Update min, max modified time for cost-benefit GC algorithm 1629 1629 */ 1630 1630 static void init_min_max_mtime(struct f2fs_sb_info *sbi)
+1 -1
fs/f2fs/segment.h
··· 1 - /** 1 + /* 2 2 * fs/f2fs/segment.h 3 3 * 4 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
+1 -1
fs/f2fs/super.c
··· 1 - /** 1 + /* 2 2 * fs/f2fs/super.c 3 3 * 4 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
+1 -1
fs/f2fs/xattr.c
··· 1 - /** 1 + /* 2 2 * fs/f2fs/xattr.c 3 3 * 4 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
+2 -2
fs/f2fs/xattr.h
··· 1 - /** 1 + /* 2 2 * fs/f2fs/xattr.h 3 3 * 4 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. ··· 77 77 #define MAX_VALUE_LEN (MIN_OFFSET - sizeof(struct f2fs_xattr_header) - \ 78 78 sizeof(struct f2fs_xattr_entry)) 79 79 80 - /** 80 + /* 81 81 * On-disk structure of f2fs_xattr 82 82 * We use only 1 block for xattr. 83 83 *