]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
f2fs: fix to clear GCed flag for atomic written page
authorChao Yu <chao2.yu@samsung.com>
Thu, 22 Oct 2015 10:18:11 +0000 (18:18 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 22 Oct 2015 16:37:13 +0000 (09:37 -0700)
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>
fs/f2fs/segment.c

index 7efd96ad9aac40b51d861ca7cee493a53333093f..f77b3258454a6f9b55810a72982436e9bf7a162e 100644 (file)
@@ -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 {