summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2015-10-22 18:18:11 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2015-10-22 09:37:13 -0700
commit7fee740697e0d9a57d618b6fec79e4c4e09fd606 (patch)
treeab0c45fa4e7656bf2bcc3194d7c7efd204812c39
parent2b246fb0f60d318cec6901a0326b94b50d5e1dcb (diff)
f2fs: fix to clear GCed flag for atomic written page
Atomic write page can be GCed, after committing this kind of page, we should clear the GCed flag for it. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r--fs/f2fs/segment.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c
index 7efd96ad9aac..f77b3258454a 100644
--- a/fs/f2fs/segment.c
+++ b/fs/f2fs/segment.c
@@ -253,6 +253,7 @@ int commit_inmem_pages(struct inode *inode, bool abort)
unlock_page(cur->page);
break;
}
+ clear_cold_data(cur->page);
submit_bio = true;
}
} else {