Commit 146949de authored by Jinyoung CHOI's avatar Jinyoung CHOI Committed by Jaegeuk Kim

f2fs: fix typos in comments

This patch is to fix typos in f2fs files.
Signed-off-by: default avatarJinyoung Choi <j-young.choi@samsung.com>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 267c159f
...@@ -792,7 +792,7 @@ static void write_orphan_inodes(struct f2fs_sb_info *sbi, block_t start_blk) ...@@ -792,7 +792,7 @@ static void write_orphan_inodes(struct f2fs_sb_info *sbi, block_t start_blk)
*/ */
head = &im->ino_list; head = &im->ino_list;
/* loop for each orphan inode entry and write them in Jornal block */ /* loop for each orphan inode entry and write them in journal block */
list_for_each_entry(orphan, head, list) { list_for_each_entry(orphan, head, list) {
if (!page) { if (!page) {
page = f2fs_grab_meta_page(sbi, start_blk++); page = f2fs_grab_meta_page(sbi, start_blk++);
...@@ -1122,7 +1122,7 @@ int f2fs_sync_dirty_inodes(struct f2fs_sb_info *sbi, enum inode_type type, ...@@ -1122,7 +1122,7 @@ int f2fs_sync_dirty_inodes(struct f2fs_sb_info *sbi, enum inode_type type,
} else { } else {
/* /*
* We should submit bio, since it exists several * We should submit bio, since it exists several
* wribacking dentry pages in the freeing inode. * writebacking dentry pages in the freeing inode.
*/ */
f2fs_submit_merged_write(sbi, DATA); f2fs_submit_merged_write(sbi, DATA);
cond_resched(); cond_resched();
......
...@@ -1225,7 +1225,7 @@ static int f2fs_write_compressed_pages(struct compress_ctx *cc, ...@@ -1225,7 +1225,7 @@ static int f2fs_write_compressed_pages(struct compress_ctx *cc,
loff_t psize; loff_t psize;
int i, err; int i, err;
/* we should bypass data pages to proceed the kworkder jobs */ /* we should bypass data pages to proceed the kworker jobs */
if (unlikely(f2fs_cp_error(sbi))) { if (unlikely(f2fs_cp_error(sbi))) {
mapping_set_error(cc->rpages[0]->mapping, -EIO); mapping_set_error(cc->rpages[0]->mapping, -EIO);
goto out_free; goto out_free;
......
...@@ -2386,7 +2386,7 @@ static int f2fs_mpage_readpages(struct inode *inode, ...@@ -2386,7 +2386,7 @@ static int f2fs_mpage_readpages(struct inode *inode,
#ifdef CONFIG_F2FS_FS_COMPRESSION #ifdef CONFIG_F2FS_FS_COMPRESSION
if (f2fs_compressed_file(inode)) { if (f2fs_compressed_file(inode)) {
/* there are remained comressed pages, submit them */ /* there are remained compressed pages, submit them */
if (!f2fs_cluster_can_merge_page(&cc, page->index)) { if (!f2fs_cluster_can_merge_page(&cc, page->index)) {
ret = f2fs_read_multi_pages(&cc, &bio, ret = f2fs_read_multi_pages(&cc, &bio,
max_nr_pages, max_nr_pages,
...@@ -2792,7 +2792,7 @@ int f2fs_write_single_data_page(struct page *page, int *submitted, ...@@ -2792,7 +2792,7 @@ int f2fs_write_single_data_page(struct page *page, int *submitted,
trace_f2fs_writepage(page, DATA); trace_f2fs_writepage(page, DATA);
/* we should bypass data pages to proceed the kworkder jobs */ /* we should bypass data pages to proceed the kworker jobs */
if (unlikely(f2fs_cp_error(sbi))) { if (unlikely(f2fs_cp_error(sbi))) {
mapping_set_error(page->mapping, -EIO); mapping_set_error(page->mapping, -EIO);
/* /*
...@@ -2911,7 +2911,7 @@ int f2fs_write_single_data_page(struct page *page, int *submitted, ...@@ -2911,7 +2911,7 @@ int f2fs_write_single_data_page(struct page *page, int *submitted,
redirty_out: redirty_out:
redirty_page_for_writepage(wbc, page); redirty_page_for_writepage(wbc, page);
/* /*
* pageout() in MM traslates EAGAIN, so calls handle_write_error() * pageout() in MM translates EAGAIN, so calls handle_write_error()
* -> mapping_set_error() -> set_bit(AS_EIO, ...). * -> mapping_set_error() -> set_bit(AS_EIO, ...).
* file_write_and_wait_range() will see EIO error, which is critical * file_write_and_wait_range() will see EIO error, which is critical
* to return value of fsync() followed by atomic_write failure to user. * to return value of fsync() followed by atomic_write failure to user.
...@@ -2945,7 +2945,7 @@ static int f2fs_write_data_page(struct page *page, ...@@ -2945,7 +2945,7 @@ static int f2fs_write_data_page(struct page *page,
} }
/* /*
* This function was copied from write_cche_pages from mm/page-writeback.c. * This function was copied from write_cache_pages from mm/page-writeback.c.
* The major change is making write step of cold data page separately from * The major change is making write step of cold data page separately from
* warm/hot data page. * warm/hot data page.
*/ */
......
...@@ -233,7 +233,7 @@ struct rb_node **f2fs_lookup_rb_tree_for_insert(struct f2fs_sb_info *sbi, ...@@ -233,7 +233,7 @@ struct rb_node **f2fs_lookup_rb_tree_for_insert(struct f2fs_sb_info *sbi,
* @prev_ex: extent before ofs * @prev_ex: extent before ofs
* @next_ex: extent after ofs * @next_ex: extent after ofs
* @insert_p: insert point for new extent at ofs * @insert_p: insert point for new extent at ofs
* in order to simpfy the insertion after. * in order to simplify the insertion after.
* tree must stay unchanged between lookup and insertion. * tree must stay unchanged between lookup and insertion.
*/ */
struct rb_entry *f2fs_lookup_rb_tree_ret(struct rb_root_cached *root, struct rb_entry *f2fs_lookup_rb_tree_ret(struct rb_root_cached *root,
...@@ -718,7 +718,7 @@ static void __update_extent_tree_range(struct inode *inode, ...@@ -718,7 +718,7 @@ static void __update_extent_tree_range(struct inode *inode,
if (!en) if (!en)
en = next_en; en = next_en;
/* 2. invlidate all extent nodes in range [fofs, fofs + len - 1] */ /* 2. invalidate all extent nodes in range [fofs, fofs + len - 1] */
while (en && en->ei.fofs < end) { while (en && en->ei.fofs < end) {
unsigned int org_end; unsigned int org_end;
int parts = 0; /* # of parts current extent split into */ int parts = 0; /* # of parts current extent split into */
......
...@@ -303,7 +303,7 @@ static int f2fs_do_sync_file(struct file *file, loff_t start, loff_t end, ...@@ -303,7 +303,7 @@ static int f2fs_do_sync_file(struct file *file, loff_t start, loff_t end,
* for OPU case, during fsync(), node can be persisted before * for OPU case, during fsync(), node can be persisted before
* data when lower device doesn't support write barrier, result * data when lower device doesn't support write barrier, result
* in data corruption after SPO. * in data corruption after SPO.
* So for strict fsync mode, force to use atomic write sematics * So for strict fsync mode, force to use atomic write semantics
* to keep write order in between data/node and last node to * to keep write order in between data/node and last node to
* avoid potential data corruption. * avoid potential data corruption.
*/ */
...@@ -1806,7 +1806,7 @@ static long f2fs_fallocate(struct file *file, int mode, ...@@ -1806,7 +1806,7 @@ static long f2fs_fallocate(struct file *file, int mode,
return -EOPNOTSUPP; return -EOPNOTSUPP;
/* /*
* Pinned file should not support partial trucation since the block * Pinned file should not support partial truncation since the block
* can be used by applications. * can be used by applications.
*/ */
if ((f2fs_compressed_file(inode) || f2fs_is_pinned_file(inode)) && if ((f2fs_compressed_file(inode) || f2fs_is_pinned_file(inode)) &&
...@@ -1856,7 +1856,7 @@ static long f2fs_fallocate(struct file *file, int mode, ...@@ -1856,7 +1856,7 @@ static long f2fs_fallocate(struct file *file, int mode,
static int f2fs_release_file(struct inode *inode, struct file *filp) static int f2fs_release_file(struct inode *inode, struct file *filp)
{ {
/* /*
* f2fs_relase_file is called at every close calls. So we should * f2fs_release_file is called at every close calls. So we should
* not drop any inmemory pages by close called by other process. * not drop any inmemory pages by close called by other process.
*/ */
if (!(filp->f_mode & FMODE_WRITE) || if (!(filp->f_mode & FMODE_WRITE) ||
......
...@@ -963,7 +963,7 @@ static int f2fs_rename(struct user_namespace *mnt_userns, struct inode *old_dir, ...@@ -963,7 +963,7 @@ static int f2fs_rename(struct user_namespace *mnt_userns, struct inode *old_dir,
/* /*
* If new_inode is null, the below renaming flow will * If new_inode is null, the below renaming flow will
* add a link in old_dir which can conver inline_dir. * add a link in old_dir which can convert inline_dir.
* After then, if we failed to get the entry due to other * After then, if we failed to get the entry due to other
* reasons like ENOMEM, we had to remove the new entry. * reasons like ENOMEM, we had to remove the new entry.
* Instead of adding such the error handling routine, let's * Instead of adding such the error handling routine, let's
......
...@@ -3616,7 +3616,7 @@ void f2fs_wait_on_page_writeback(struct page *page, ...@@ -3616,7 +3616,7 @@ void f2fs_wait_on_page_writeback(struct page *page,
/* submit cached LFS IO */ /* submit cached LFS IO */
f2fs_submit_merged_write_cond(sbi, NULL, page, 0, type); f2fs_submit_merged_write_cond(sbi, NULL, page, 0, type);
/* sbumit cached IPU IO */ /* submit cached IPU IO */
f2fs_submit_merged_ipu_write(sbi, NULL, page); f2fs_submit_merged_ipu_write(sbi, NULL, page);
if (ordered) { if (ordered) {
wait_on_page_writeback(page); wait_on_page_writeback(page);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment