summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/dir.c
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2018-03-09 14:24:22 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2018-03-17 13:57:33 +0900
commitc56675750d7c45ce6cc21a67770629aaf41d1491 (patch)
tree61b952c98fac04f320290d4d69168a023da6be16 /fs/f2fs/dir.c
parentb91050a80cec3daf5a21f78274330df64a4936a3 (diff)
downloadtalos-obmc-linux-c56675750d7c45ce6cc21a67770629aaf41d1491.tar.gz
talos-obmc-linux-c56675750d7c45ce6cc21a67770629aaf41d1491.zip
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.c2
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) {
OpenPOWER on IntegriCloud