Skip to content

Commit

Permalink
block_write_full_page(): report ENOSPC
Browse files Browse the repository at this point in the history
block_write_full_page() forgot to propagate ENPSOC into the address_space.

Cc: Guillaume Chazarain <guichaz@yahoo.fr>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed May 8, 2007
1 parent 3e9f45b commit 7e4c369
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1727,6 +1727,7 @@ static int __block_write_full_page(struct inode *inode, struct page *page,
} 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;
Expand Down

0 comments on commit 7e4c369

Please sign in to comment.