diff options
author | Chao Yu <chao2.yu@samsung.com> | 2015-12-15 00:29:47 -0500 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-12-15 16:23:43 -0500 |
commit | a49324f127dec918f5a3b3f145d0bf2fb81f4588 (patch) | |
tree | b779dbb8912eb946aa6b8f70eaaf604c963b2e82 /fs/f2fs/checkpoint.c | |
parent | a11fac3776fc4db6a9fa1104b1d0477809c677e0 (diff) |
f2fs: rename {add,remove,release}_dirty_inode to {add,remove,release}_ino_entry
remove_dirty_dir_inode will be renamed to remove_dirty_inode as a generic
function in following patch for removing directory/regular/symlink inode
in global dirty list.
Here rename ino management related functions for readability, also in
order to avoid name conflict.
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/checkpoint.c')
-rw-r--r-- | fs/f2fs/checkpoint.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index f661d80474be..b839f5f3385c 100644 --- a/fs/f2fs/checkpoint.c +++ b/fs/f2fs/checkpoint.c | |||
@@ -410,13 +410,13 @@ static void __remove_ino_entry(struct f2fs_sb_info *sbi, nid_t ino, int type) | |||
410 | spin_unlock(&im->ino_lock); | 410 | spin_unlock(&im->ino_lock); |
411 | } | 411 | } |
412 | 412 | ||
413 | void add_dirty_inode(struct f2fs_sb_info *sbi, nid_t ino, int type) | 413 | void add_ino_entry(struct f2fs_sb_info *sbi, nid_t ino, int type) |
414 | { | 414 | { |
415 | /* add new dirty ino entry into list */ | 415 | /* add new dirty ino entry into list */ |
416 | __add_ino_entry(sbi, ino, type); | 416 | __add_ino_entry(sbi, ino, type); |
417 | } | 417 | } |
418 | 418 | ||
419 | void remove_dirty_inode(struct f2fs_sb_info *sbi, nid_t ino, int type) | 419 | void remove_ino_entry(struct f2fs_sb_info *sbi, nid_t ino, int type) |
420 | { | 420 | { |
421 | /* remove dirty ino entry from list */ | 421 | /* remove dirty ino entry from list */ |
422 | __remove_ino_entry(sbi, ino, type); | 422 | __remove_ino_entry(sbi, ino, type); |
@@ -434,7 +434,7 @@ bool exist_written_data(struct f2fs_sb_info *sbi, nid_t ino, int mode) | |||
434 | return e ? true : false; | 434 | return e ? true : false; |
435 | } | 435 | } |
436 | 436 | ||
437 | void release_dirty_inode(struct f2fs_sb_info *sbi) | 437 | void release_ino_entry(struct f2fs_sb_info *sbi) |
438 | { | 438 | { |
439 | struct ino_entry *e, *tmp; | 439 | struct ino_entry *e, *tmp; |
440 | int i; | 440 | int i; |
@@ -1081,7 +1081,7 @@ static void do_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc) | |||
1081 | invalidate_mapping_pages(META_MAPPING(sbi), discard_blk, | 1081 | invalidate_mapping_pages(META_MAPPING(sbi), discard_blk, |
1082 | discard_blk); | 1082 | discard_blk); |
1083 | 1083 | ||
1084 | release_dirty_inode(sbi); | 1084 | release_ino_entry(sbi); |
1085 | 1085 | ||
1086 | if (unlikely(f2fs_cp_error(sbi))) | 1086 | if (unlikely(f2fs_cp_error(sbi))) |
1087 | return; | 1087 | return; |