Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167592
b: refs/heads/master
c: 444528b
h: refs/heads/master
v: v3
  • Loading branch information
Chris Mason committed Oct 14, 2009
1 parent 5e478ae commit 557c2d8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0634857488ec6e28fa22920cd0bee3c2ac07ccfd
refs/heads/master: 444528b3e614f7f2391488d9bca8e0b872db909b
8 changes: 8 additions & 0 deletions trunk/fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -3686,6 +3686,14 @@ static int pin_down_bytes(struct btrfs_trans_handle *trans,
if (is_data)
goto pinit;

/*
* discard is sloooow, and so triggering discards on
* individual btree blocks isn't a good plan. Just
* pin everything in discard mode.
*/
if (btrfs_test_opt(root, DISCARD))
goto pinit;

buf = btrfs_find_tree_block(root, bytenr, num_bytes);
if (!buf)
goto pinit;
Expand Down

0 comments on commit 557c2d8

Please sign in to comment.