Re: [patch 010/455] block_write_full_page(): report ENOSPC

From: Guillaume Chazarain
Date: Tue May 08 2007 - 08:00:26 EST


akpm@xxxxxxxxxxxxxxxxxxxx a Ãcrit :
block_write_full_page() forgot to propagate ENPSOC into the address_space.

--- a/fs/buffer.c~block_write_full_page-handle-enospc
+++ a/fs/buffer.c
@@ -1727,6 +1727,7 @@ recover:
} while ((bh = bh->b_this_page) != head);
SetPageError(page);
BUG_ON(PageWriteback(page));
+ mapping_set_error(page->mapping, err);
set_page_writeback(page);
do {
struct buffer_head *next = bh->b_this_page;

As I said in http://lkml.org/lkml/2007/2/9/336 I am not aware of any call stack where the error is dropped here.

So, this patch should not harm but I am not sure it does any good.

Thanks.

--
Guillaume
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/