Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309871
b: refs/heads/master
c: 39bab87
h: refs/heads/master
i:
  309869: 33c585e
  309867: 0593bff
  309863: f5b9ee5
  309855: 6ed3b05
v: v3
  • Loading branch information
Wang Sheng-Hui authored and Josef Bacik committed May 11, 2012
1 parent d7d1a91 commit 64134db
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 1b303fc0545b4bfbb2b8a69eec89e6f077f69b56
refs/heads/master: 39bab87ba6f4d8cce2b70c19e60233ad8030d7b4
4 changes: 3 additions & 1 deletion trunk/fs/btrfs/extent_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -3981,11 +3981,13 @@ static void btrfs_release_extent_buffer_page(struct extent_buffer *eb,
unsigned long start_idx)
{
unsigned long index;
unsigned long num_pages;
struct page *page;

BUG_ON(extent_buffer_under_io(eb));

index = num_extent_pages(eb->start, eb->len);
num_pages = num_extent_pages(eb->start, eb->len);
index = start_idx + num_pages;
if (start_idx >= index)
return;

Expand Down

0 comments on commit 64134db

Please sign in to comment.