Skip to content

Commit

Permalink
f2fs: adjust kernel coding style
Browse files Browse the repository at this point in the history
As pointed out by Randy Dunlap, this patch removes all usage of "/**" for comment
blocks. Instead, just use "/*".

Signed-off-by: Jaegeuk Kim <[email protected]>
  • Loading branch information
Jaegeuk Kim committed Dec 11, 2012
1 parent 25ca923 commit 0a8165d
Show file tree
Hide file tree
Showing 21 changed files with 63 additions and 63 deletions.
2 changes: 1 addition & 1 deletion fs/f2fs/acl.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* fs/f2fs/acl.c
*
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
Expand Down
2 changes: 1 addition & 1 deletion fs/f2fs/acl.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* fs/f2fs/acl.h
*
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
Expand Down
10 changes: 5 additions & 5 deletions fs/f2fs/checkpoint.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* fs/f2fs/checkpoint.c
*
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
Expand All @@ -24,7 +24,7 @@
static struct kmem_cache *orphan_entry_slab;
static struct kmem_cache *inode_entry_slab;

/**
/*
* We guarantee no failure on the returned page.
*/
struct page *grab_meta_page(struct f2fs_sb_info *sbi, pgoff_t index)
Expand All @@ -44,7 +44,7 @@ struct page *grab_meta_page(struct f2fs_sb_info *sbi, pgoff_t index)
return page;
}

/**
/*
* We guarantee no failure on the returned page.
*/
struct page *get_meta_page(struct f2fs_sb_info *sbi, pgoff_t index)
Expand Down Expand Up @@ -543,7 +543,7 @@ void sync_dirty_dir_inodes(struct f2fs_sb_info *sbi)
goto retry;
}

/**
/*
* Freeze all the FS-operations for checkpoint.
*/
void block_operations(struct f2fs_sb_info *sbi)
Expand Down Expand Up @@ -727,7 +727,7 @@ static void do_checkpoint(struct f2fs_sb_info *sbi, bool is_umount)
F2FS_RESET_SB_DIRT(sbi);
}

/**
/*
* We guarantee that this checkpoint procedure should not fail.
*/
void write_checkpoint(struct f2fs_sb_info *sbi, bool blocked, bool is_umount)
Expand Down
12 changes: 6 additions & 6 deletions fs/f2fs/data.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* fs/f2fs/data.c
*
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
Expand All @@ -21,7 +21,7 @@
#include "node.h"
#include "segment.h"

/**
/*
* Lock ordering for the change of data block address:
* ->data_page
* ->node_page
Expand Down Expand Up @@ -207,7 +207,7 @@ struct page *find_data_page(struct inode *inode, pgoff_t index)
return page;
}

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

/**
/*
* Caller ensures that this data page is never allocated.
* A new zero-filled data page is allocated in the page cache.
*/
Expand Down Expand Up @@ -322,7 +322,7 @@ static void read_end_io(struct bio *bio, int err)
bio_put(bio);
}

/**
/*
* Fill the locked page with data located in the block address.
* Read operation is synchronous, and caller must unlock the page.
*/
Expand Down Expand Up @@ -367,7 +367,7 @@ int f2fs_readpage(struct f2fs_sb_info *sbi, struct page *page,
return 0;
}

/**
/*
* This function should be used by the data read flow only where it
* does not check the "create" flag that indicates block allocation.
* The reason for this special functionality is to exploit VFS readahead
Expand Down
6 changes: 3 additions & 3 deletions fs/f2fs/debug.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* f2fs debugging statistics
*
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
Expand Down Expand Up @@ -78,7 +78,7 @@ static void update_general_status(struct f2fs_sb_info *sbi)
}
}

/**
/*
* This function calculates BDF of every segments
*/
static void update_sit_info(struct f2fs_sb_info *sbi)
Expand Down Expand Up @@ -113,7 +113,7 @@ static void update_sit_info(struct f2fs_sb_info *sbi)
si->avg_vblocks = 0;
}

/**
/*
* This function calculates memory footprint.
*/
static void update_mem_info(struct f2fs_sb_info *sbi)
Expand Down
4 changes: 2 additions & 2 deletions fs/f2fs/dir.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* fs/f2fs/dir.c
*
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
Expand Down Expand Up @@ -453,7 +453,7 @@ int f2fs_add_link(struct dentry *dentry, struct inode *inode)
return err;
}

/**
/*
* It only removes the dentry from the dentry page,corresponding name
* entry in name page does not need to be touched during deletion.
*/
Expand Down
2 changes: 1 addition & 1 deletion fs/f2fs/f2fs.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* fs/f2fs/f2fs.h
*
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
Expand Down
2 changes: 1 addition & 1 deletion fs/f2fs/file.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* fs/f2fs/file.c
*
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
Expand Down
10 changes: 5 additions & 5 deletions fs/f2fs/gc.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* fs/f2fs/gc.c
*
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
Expand Down Expand Up @@ -213,7 +213,7 @@ static unsigned int get_gc_cost(struct f2fs_sb_info *sbi, unsigned int segno,
return get_cb_cost(sbi, segno);
}

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

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

/**
/*
* Calculate start block index that this node page contains
*/
block_t start_bidx_of_node(unsigned int node_ofs)
Expand Down Expand Up @@ -516,7 +516,7 @@ static void move_data_page(struct inode *inode, struct page *page, int gc_type)
f2fs_put_page(page, 1);
}

/**
/*
* This function tries to get parent node of victim data block, and identifies
* data block validity. If the block is valid, copy that with cold status and
* modify parent node.
Expand Down
4 changes: 2 additions & 2 deletions fs/f2fs/gc.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* fs/f2fs/gc.h
*
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
Expand Down Expand Up @@ -42,7 +42,7 @@ struct inode_entry {
struct inode *inode;
};

/**
/*
* inline functions
*/
static inline block_t free_user_blocks(struct f2fs_sb_info *sbi)
Expand Down
2 changes: 1 addition & 1 deletion fs/f2fs/hash.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* fs/f2fs/hash.c
*
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
Expand Down
4 changes: 2 additions & 2 deletions fs/f2fs/inode.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* fs/f2fs/inode.c
*
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
Expand Down Expand Up @@ -235,7 +235,7 @@ int f2fs_write_inode(struct inode *inode, struct writeback_control *wbc)
return 0;
}

/**
/*
* Called at the last iput() if i_nlink is zero
*/
void f2fs_evict_inode(struct inode *inode)
Expand Down
4 changes: 2 additions & 2 deletions fs/f2fs/namei.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* fs/f2fs/namei.c
*
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
Expand Down Expand Up @@ -96,7 +96,7 @@ static int is_multimedia_file(const unsigned char *s, const char *sub)
return ret;
}

/**
/*
* Set multimedia files as cold files for hot/cold data separation
*/
static inline void set_cold_file(struct f2fs_sb_info *sbi, struct inode *inode,
Expand Down
22 changes: 11 additions & 11 deletions fs/f2fs/node.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* fs/f2fs/node.c
*
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
Expand Down Expand Up @@ -81,7 +81,7 @@ static struct page *get_next_nat_page(struct f2fs_sb_info *sbi, nid_t nid)
return dst_page;
}

/**
/*
* Readahead NAT pages
*/
static void ra_nat_pages(struct f2fs_sb_info *sbi, int nid)
Expand Down Expand Up @@ -251,7 +251,7 @@ static int try_to_free_nats(struct f2fs_sb_info *sbi, int nr_shrink)
return nr_shrink;
}

/**
/*
* This function returns always success
*/
void get_node_info(struct f2fs_sb_info *sbi, nid_t nid, struct node_info *ni)
Expand Down Expand Up @@ -302,7 +302,7 @@ void get_node_info(struct f2fs_sb_info *sbi, nid_t nid, struct node_info *ni)
cache_nat_entry(NM_I(sbi), nid, &ne);
}

/**
/*
* The maximum depth is four.
* Offset[0] will have raw inode offset.
*/
Expand Down Expand Up @@ -649,7 +649,7 @@ static int truncate_partial_nodes(struct dnode_of_data *dn,
return err;
}

/**
/*
* All the block addresses of data and nodes should be nullified.
*/
int truncate_inode_blocks(struct inode *inode, pgoff_t from)
Expand Down Expand Up @@ -860,7 +860,7 @@ static int read_node_page(struct page *page, int type)
return f2fs_readpage(sbi, page, ni.blk_addr, type);
}

/**
/*
* Readahead a node page
*/
void ra_node_page(struct f2fs_sb_info *sbi, nid_t nid)
Expand Down Expand Up @@ -910,7 +910,7 @@ struct page *get_node_page(struct f2fs_sb_info *sbi, pgoff_t nid)
return page;
}

/**
/*
* Return a locked page for the desired node page.
* And, readahead MAX_RA_NODE number of node pages.
*/
Expand Down Expand Up @@ -1186,7 +1186,7 @@ static int f2fs_release_node_page(struct page *page, gfp_t wait)
return 0;
}

/**
/*
* Structure of the f2fs node operations
*/
const struct address_space_operations f2fs_node_aops = {
Expand Down Expand Up @@ -1386,7 +1386,7 @@ bool alloc_nid(struct f2fs_sb_info *sbi, nid_t *nid)
return true;
}

/**
/*
* alloc_nid() should be called prior to this function.
*/
void alloc_nid_done(struct f2fs_sb_info *sbi, nid_t nid)
Expand All @@ -1403,7 +1403,7 @@ void alloc_nid_done(struct f2fs_sb_info *sbi, nid_t nid)
spin_unlock(&nm_i->free_nid_list_lock);
}

/**
/*
* alloc_nid() should be called prior to this function.
*/
void alloc_nid_failed(struct f2fs_sb_info *sbi, nid_t nid)
Expand Down Expand Up @@ -1545,7 +1545,7 @@ static bool flush_nats_in_journal(struct f2fs_sb_info *sbi)
return true;
}

/**
/*
* This function is called during the checkpointing process.
*/
void flush_nat_entries(struct f2fs_sb_info *sbi)
Expand Down
2 changes: 1 addition & 1 deletion fs/f2fs/node.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* fs/f2fs/node.h
*
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
Expand Down
2 changes: 1 addition & 1 deletion fs/f2fs/recovery.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* fs/f2fs/recovery.c
*
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
Expand Down
Loading

0 comments on commit 0a8165d

Please sign in to comment.