projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffcde4b
)
f2fs: fix to wait GCed compressed page writeback
author
Chao Yu
<yuchao0@huawei.com>
Fri, 3 Jul 2020 08:40:11 +0000
(16:40 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Wed, 8 Jul 2020 17:11:19 +0000
(10:11 -0700)
like we did for encrypted page.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/compress.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/compress.c
b/fs/f2fs/compress.c
index b3ecf7d4d6d881662bdff0218b3877ed5674b324..3a847bc367482878992061aa93ddf6d73b675371 100644
(file)
--- a/
fs/f2fs/compress.c
+++ b/
fs/f2fs/compress.c
@@
-1152,6
+1152,13
@@
static int f2fs_write_compressed_pages(struct compress_ctx *cc,
f2fs_set_compressed_page(cc->cpages[i], inode,
cc->rpages[i + 1]->index, cic);
fio.compressed_page = cc->cpages[i];
+
+ fio.old_blkaddr = data_blkaddr(dn.inode, dn.node_page,
+ dn.ofs_in_node + i + 1);
+
+ /* wait for GCed page writeback via META_MAPPING */
+ f2fs_wait_on_block_writeback(inode, fio.old_blkaddr);
+
if (fio.encrypted) {
fio.page = cc->rpages[i + 1];
err = f2fs_encrypt_one_page(&fio);