diff options
author | Chao Yu <yuchao0@huawei.com> | 2018-03-09 09:24:22 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-03-17 07:57:33 +0300 |
commit | c56675750d7c45ce6cc21a67770629aaf41d1491 (patch) | |
tree | 61b952c98fac04f320290d4d69168a023da6be16 /fs/f2fs/dir.c | |
parent | b91050a80cec3daf5a21f78274330df64a4936a3 (diff) | |
download | linux-c56675750d7c45ce6cc21a67770629aaf41d1491.tar.xz |
f2fs: remove unneeded set_cold_node()
When setting COLD_BIT_SHIFT flag in node block, we only need to call
set_cold_node() in new_node_page() and recover_inode_page() during
node page initialization. So remove unneeded set_cold_node() in other
places.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/dir.c')
-rw-r--r-- | fs/f2fs/dir.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c index 3644db9177cb..9a0d103b5052 100644 --- a/fs/f2fs/dir.c +++ b/fs/f2fs/dir.c @@ -396,8 +396,6 @@ struct page *init_inode_metadata(struct inode *inode, struct inode *dir, page = get_node_page(F2FS_I_SB(dir), inode->i_ino); if (IS_ERR(page)) return page; - - set_cold_node(inode, page); } if (new_name) { |