Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297852
b: refs/heads/master
c: f3f266a
h: refs/heads/master
v: v3
  • Loading branch information
Chris Mason committed Mar 26, 2012
1 parent 5b00b78 commit e999605
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: f7c79f30cb2d3883488e70cafc9e3a7edd4b9fdb
refs/heads/master: f3f266ab1bfe4770375d24fa8e72a03278e9450a
8 changes: 4 additions & 4 deletions trunk/fs/btrfs/disk-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -840,15 +840,15 @@ static int btree_submit_bio_hook(struct inode *inode, int rw, struct bio *bio,
{
int ret;

ret = btrfs_bio_wq_end_io(BTRFS_I(inode)->root->fs_info,
bio, 1);
BUG_ON(ret);

if (!(rw & REQ_WRITE)) {

/*
* called for a read, do the setup so that checksum validation
* can happen in the async kernel threads
*/
ret = btrfs_bio_wq_end_io(BTRFS_I(inode)->root->fs_info,
bio, 1);
BUG_ON(ret);
return btrfs_map_bio(BTRFS_I(inode)->root, rw, bio,
mirror_num, 0);
}
Expand Down

0 comments on commit e999605

Please sign in to comment.