diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index ccb00de9b0b0..382b7d386ffb 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c @@ -875,6 +875,9 @@ next_step: continue; } locked = true; + + /* wait for all inflight aio data */ + inode_dio_wait(inode); } start_bidx = start_bidx_of_node(nofs, inode)