vfs: Don't flush delay buffer to disk From: Mingming Cao In block_write_full_page() error case, we need to check the delayed flag before flush bh to disk when trying to recover from error. Signed-off-by: Mingming Cao Signed-off-by: Aneesh Kumar K.V --- fs/buffer.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/fs/buffer.c b/fs/buffer.c index 2f86ca5..26dddac 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -1775,7 +1775,8 @@ static int __block_write_full_page(struct inode *inode, struct page *page, bh = head; /* Recovery: lock and submit the mapped buffers */ do { - if (buffer_mapped(bh) && buffer_dirty(bh)) { + if (buffer_mapped(bh) && buffer_dirty(bh) + && !buffer_delay(bh)) { lock_buffer(bh); mark_buffer_async_write(bh); } else {