We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4d7f2b commit ebd3309Copy full SHA for ebd3309
fs/f2fs/file.c
@@ -2195,6 +2195,10 @@ static int f2fs_ioc_start_atomic_write(struct file *filp, bool truncate)
2195
F2FS_I(fi->cow_inode)->atomic_inode = inode;
2196
} else {
2197
/* Reuse the already created COW inode */
2198
+ f2fs_bug_on(sbi, get_dirty_pages(fi->cow_inode));
2199
+
2200
+ invalidate_mapping_pages(fi->cow_inode->i_mapping, 0, -1);
2201
2202
ret = f2fs_do_truncate_blocks(fi->cow_inode, 0, true);
2203
if (ret) {
2204
f2fs_up_write(&fi->i_gc_rwsem[WRITE]);
0 commit comments