Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376274
b: refs/heads/master
c: dfd20b2
h: refs/heads/master
v: v3
  • Loading branch information
Brian Behlendorf authored and Linus Torvalds committed May 24, 2013
1 parent 4bfbf74 commit e1cdb93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: e5ee7305ae03e43dbe2b0e346232975f793ad0eb
refs/heads/master: dfd20b2b174d3a9b258ea3b7a35ead33576587b1
4 changes: 2 additions & 2 deletions trunk/drivers/block/brd.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ static struct page *brd_insert_page(struct brd_device *brd, sector_t sector)

spin_lock(&brd->brd_lock);
idx = sector >> PAGE_SECTORS_SHIFT;
page->index = idx;
if (radix_tree_insert(&brd->brd_pages, idx, page)) {
__free_page(page);
page = radix_tree_lookup(&brd->brd_pages, idx);
BUG_ON(!page);
BUG_ON(page->index != idx);
} else
page->index = idx;
}
spin_unlock(&brd->brd_lock);

radix_tree_preload_end();
Expand Down

0 comments on commit e1cdb93

Please sign in to comment.