Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274688
b: refs/heads/master
c: bf0da8c
h: refs/heads/master
v: v3
  • Loading branch information
Chris Mason committed Nov 6, 2011
1 parent aec2d0b commit b67344a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 663350ac38c67ca388acea6e876dc6d668c232b0
refs/heads/master: bf0da8c183a15656eee63c54f334c3794320872a
4 changes: 4 additions & 0 deletions trunk/fs/btrfs/extent_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -2334,6 +2334,9 @@ static int __extent_writepage(struct page *page, struct writeback_control *wbc,
trace___extent_writepage(page, inode, wbc);

WARN_ON(!PageLocked(page));

ClearPageError(page);

pg_offset = i_size & (PAGE_CACHE_SIZE - 1);
if (page->index > end_index ||
(page->index == end_index && !pg_offset)) {
Expand Down Expand Up @@ -3402,6 +3405,7 @@ int clear_extent_buffer_dirty(struct extent_io_tree *tree,
PAGECACHE_TAG_DIRTY);
}
spin_unlock_irq(&page->mapping->tree_lock);
ClearPageError(page);
unlock_page(page);
}
return 0;
Expand Down
7 changes: 6 additions & 1 deletion trunk/fs/btrfs/transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,12 @@ int btrfs_write_and_wait_marked_extents(struct btrfs_root *root,

ret = btrfs_write_marked_extents(root, dirty_pages, mark);
ret2 = btrfs_wait_marked_extents(root, dirty_pages, mark);
return ret || ret2;

if (ret)
return ret;
if (ret2)
return ret2;
return 0;
}

int btrfs_write_and_wait_transaction(struct btrfs_trans_handle *trans,
Expand Down

0 comments on commit b67344a

Please sign in to comment.